提交 ecd8a8c2 编写于 作者: J Jiang Biao 提交者: Radim Krčmář

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: NJiang Biao <jiang.biao2@zte.com.cn>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 1e13175b
...@@ -291,7 +291,7 @@ static int synic_get_msr(struct kvm_vcpu_hv_synic *synic, u32 msr, u64 *pdata) ...@@ -291,7 +291,7 @@ static int synic_get_msr(struct kvm_vcpu_hv_synic *synic, u32 msr, u64 *pdata)
return ret; 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_vcpu *vcpu = synic_to_vcpu(synic);
struct kvm_lapic_irq irq; struct kvm_lapic_irq irq;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册