summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-11-24 01:40:01 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2022-11-28 19:31:01 +0100
commit3ca9d84e722e8044c09e80992aa7b15bd904d3ce (patch)
tree2ee2811692f30532a1ccb4c3525040ed34da363a /include
parentMerge branch 'kvm-dwmw2-fixes' into HEAD (diff)
downloadlinux-3ca9d84e722e8044c09e80992aa7b15bd904d3ce.tar.xz
linux-3ca9d84e722e8044c09e80992aa7b15bd904d3ce.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm_host.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 6f0f389f5f9c..b8d12356f015 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -663,9 +663,9 @@ struct kvm_irq_routing_table {
*/
struct hlist_head map[];
};
+#endif
bool kvm_arch_irqchip_in_kernel(struct kvm *kvm);
-#endif
#ifndef KVM_INTERNAL_MEM_SLOTS
#define KVM_INTERNAL_MEM_SLOTS 0