diff options
author | Jiang Biao <jiang.biao2@zte.com.cn> | 2016-11-06 19:56:33 -0500 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2016-11-16 16:09:44 -0500 |
commit | ecd8a8c2b406c5cc9e1e39a7194eb5da4b110c5d (patch) | |
tree | ac404c5574259941d76a7ca0818737dbab9c207a | |
parent | 1e13175bd2b608ce1f94ef84f54dfac0d7288241 (diff) |
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 <jiang.biao2@zte.com.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | arch/x86/kvm/hyperv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
291 | return ret; | 291 | return ret; |
292 | } | 292 | } |
293 | 293 | ||
294 | int synic_set_irq(struct kvm_vcpu_hv_synic *synic, u32 sint) | 294 | static int synic_set_irq(struct kvm_vcpu_hv_synic *synic, u32 sint) |
295 | { | 295 | { |
296 | struct kvm_vcpu *vcpu = synic_to_vcpu(synic); | 296 | struct kvm_vcpu *vcpu = synic_to_vcpu(synic); |
297 | struct kvm_lapic_irq irq; | 297 | struct kvm_lapic_irq irq; |