OSDN Git Service

kvm: fix warning for CONFIG_HAVE_KVM_EVENTFD builds
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Thu, 22 Feb 2018 12:05:41 +0000 (13:05 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 24 Feb 2018 00:43:46 +0000 (01:43 +0100)
commit076467490b8176eb96eddc548a14d4135c7b5852
treea476f5d2308d5265d3a97557b1d9b0d36696f6cd
parent6789af030a462708f937137e05eb12ea009fb348
kvm: fix warning for CONFIG_HAVE_KVM_EVENTFD builds

Move the kvm_arch_irq_routing_update() prototype outside of
ifdef CONFIG_HAVE_KVM_EVENTFD guards to fix the following sparse warning:

arch/s390/kvm/../../../virt/kvm/irqchip.c:171:28: warning: symbol 'kvm_arch_irq_routing_update' was not declared. Should it be static?

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h