KVM: declare ioapic functions only on affected hardware
commitb95b51d580bff9376850eef29d34c3aa08c26db7
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 26 Feb 2009 12:55:33 +0000 (26 13:55 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:24 +0000 (10 11:48 +0300)
tree54f505ef2fba99adc38580f631556cb756f6df2f
parenta90ede7b17d122acd58e6e1ff911be9dcf5263cc
KVM: declare ioapic functions only on affected hardware

Since "KVM: Unify the delivery of IOAPIC and MSI interrupts"
I get the following warnings:

  CC [M]  arch/s390/kvm/kvm-s390.o
In file included from arch/s390/kvm/kvm-s390.c:22:
include/linux/kvm_host.h:357: warning: 'struct kvm_ioapic' declared inside parameter list
include/linux/kvm_host.h:357: warning: its scope is only this definition or declaration, which is probably not what you want

This patch limits IOAPIC functions for architectures that have one.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
include/linux/kvm_host.h