KVM: Move kvm_setup_default/empty_irq_routing declaration in arch specific header
authorEric Auger <eric.auger@redhat.com>
Fri, 22 Jul 2016 16:20:40 +0000 (16:20 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 22 Jul 2016 17:52:00 +0000 (18:52 +0100)
kvm_setup_default_irq_routing and kvm_setup_empty_irq_routing are
not used by generic code. So let's move the declarations in x86 irq.h
header instead of kvm_host.h.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Suggested-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/x86/kvm/irq.h
include/linux/kvm_host.h

index 61ebdc13a29af228a1ff2912c9025a5bbb5694cc..035731eb389755b6f92a6df270b0c00dc25bd81c 100644 (file)
@@ -120,4 +120,7 @@ void __kvm_migrate_timers(struct kvm_vcpu *vcpu);
 
 int apic_has_pending_timer(struct kvm_vcpu *vcpu);
 
+int kvm_setup_default_irq_routing(struct kvm *kvm);
+int kvm_setup_empty_irq_routing(struct kvm *kvm);
+
 #endif
index a15828fe845c46c8725d590b7913a2fdd1d1949f..a7eb5c48251ecb9cfb49df65a6c0856645b7f136 100644 (file)
@@ -1052,8 +1052,6 @@ static inline int mmu_notifier_retry(struct kvm *kvm, unsigned long mmu_seq)
 #define KVM_MAX_IRQ_ROUTES 1024
 #endif
 
-int kvm_setup_default_irq_routing(struct kvm *kvm);
-int kvm_setup_empty_irq_routing(struct kvm *kvm);
 int kvm_set_irq_routing(struct kvm *kvm,
                        const struct kvm_irq_routing_entry *entries,
                        unsigned nr,