Skip to content

Commit 3ca9d84

Browse files
committed
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: d663b8a ("KVM: replace direct irq.h inclusion") Reported-by: kernel test robot <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 79268e9 commit 3ca9d84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/kvm_host.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,9 @@ struct kvm_irq_routing_table {
663663
*/
664664
struct hlist_head map[];
665665
};
666+
#endif
666667

667668
bool kvm_arch_irqchip_in_kernel(struct kvm *kvm);
668-
#endif
669669

670670
#ifndef KVM_INTERNAL_MEM_SLOTS
671671
#define KVM_INTERNAL_MEM_SLOTS 0

0 commit comments

Comments
 (0)