KVM: always declare prototype for kvm_arch_irqchip_in_kernel
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Nov 2022 00:40:01 +0000 (19:40 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Nov 2022 18:31:01 +0000 (13:31 -0500)
commit3ca9d84e722e8044c09e80992aa7b15bd904d3ce
tree2ee2811692f30532a1ccb4c3525040ed34da363a
parent79268e9c62ec6eb6233a85a25c8795fa322aea82
KVM: always declare prototype for kvm_arch_irqchip_in_kernel

Architecture code might want to use it even if CONFIG_HAVE_KVM_IRQ_ROUTING
is false; for example PPC XICS has KVM_IRQ_LINE and wants to use
kvm_arch_irqchip_in_kernel from there, but it does not have
KVM_SET_GSI_ROUTING so the prototype was not provided.

Fixes: d663b8a28598 ("KVM: replace direct irq.h inclusion")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h