From: Jiang Biao Date: Mon, 7 Nov 2016 00:56:33 +0000 (+0800) Subject: kvm: x86: hyperv: make function static to avoid compiling warning X-Git-Tag: microblaze-4.13-rc1~1092^2~32 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=ecd8a8c2b406c5cc9e1e39a7194eb5da4b110c5d;p=linux-2.6-microblaze.git kvm: x86: hyperv: make function static to avoid compiling warning 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 Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c index 42b1c83741c8..99cde5220e07 100644 --- a/arch/x86/kvm/hyperv.c +++ b/arch/x86/kvm/hyperv.c @@ -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;