]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: PPC: Fix compile warning
authorAlexander Graf <agraf@suse.de>
Thu, 25 Nov 2010 09:25:44 +0000 (10:25 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:29:42 +0000 (11:29 +0200)
commit27923eb19c5d1197bd9d1472abdc2e749f21387a
treebfb6837f34ea815a06e37f3021407d072e6cf8d7
parent586f9607962cd982293759a4e95ff06e75be5225
KVM: PPC: Fix compile warning

KVM compilation fails with the following warning:

include/linux/kvm_host.h: In function 'kvm_irq_routing_update':
include/linux/kvm_host.h:679:2: error: 'struct kvm' has no member named 'irq_routing'

That function is only used and reasonable to have on systems that implement
an in-kernel interrupt chip. PPC doesn't.

Fix by #ifdef'ing it out when no irqchip is available.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
include/linux/kvm_host.h