kvm: x86: hyperv: make function static to avoid compiling warning
authorJiang Biao <jiang.biao2@zte.com.cn>
Mon, 7 Nov 2016 00:56:33 +0000 (08:56 +0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 16 Nov 2016 21:09:44 +0000 (22:09 +0100)
synic_set_irq is only used in hyperv.c, and should be static to
avoid compiling warning when with -Wmissing-prototypes option.

Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/hyperv.c

index 42b1c83741c8f515ae37a5eb85bc87067f9f48f1..99cde5220e0799fd84aca5a6774dce47e289a73c 100644 (file)
@@ -291,7 +291,7 @@ static int synic_get_msr(struct kvm_vcpu_hv_synic *synic, u32 msr, u64 *pdata)
        return ret;
 }
 
-int synic_set_irq(struct kvm_vcpu_hv_synic *synic, u32 sint)
+static int synic_set_irq(struct kvm_vcpu_hv_synic *synic, u32 sint)
 {
        struct kvm_vcpu *vcpu = synic_to_vcpu(synic);
        struct kvm_lapic_irq irq;