OSDN Git Service

KVM: x86: make kvm_pic_reset() static
authorDavid Hildenbrand <david@redhat.com>
Fri, 7 Apr 2017 08:50:37 +0000 (10:50 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 12 Apr 2017 18:17:14 +0000 (20:17 +0200)
Not used outside of i8259.c, so let's make it static.

Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/i8259.c
arch/x86/kvm/irq.h

index fce571c..0252e68 100644 (file)
@@ -268,7 +268,7 @@ int kvm_pic_read_irq(struct kvm *kvm)
        return intno;
 }
 
-void kvm_pic_reset(struct kvm_kpic_state *s)
+static void kvm_pic_reset(struct kvm_kpic_state *s)
 {
        int irq, i;
        struct kvm_vcpu *vcpu;
index 8fec66d..0edd22c 100644 (file)
@@ -114,8 +114,6 @@ static inline int irqchip_in_kernel(struct kvm *kvm)
        return mode > KVM_IRQCHIP_INIT_IN_PROGRESS;
 }
 
-void kvm_pic_reset(struct kvm_kpic_state *s);
-
 void kvm_inject_pending_timer_irqs(struct kvm_vcpu *vcpu);
 void kvm_inject_apic_timer_irqs(struct kvm_vcpu *vcpu);
 void kvm_apic_nmi_wd_deliver(struct kvm_vcpu *vcpu);