From: Jiang Biao Date: Thu, 3 Nov 2016 07:03:37 +0000 (+0800) Subject: kvm: x86: make function static to avoid compiling warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=33365e7a454fd40d30d11bf0d9147e059b22e099;p=openwrt%2Fstaging%2Fblogic.git kvm: x86: make function static to avoid compiling warning vmx_arm_hv_timer is only used in vmx.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/vmx.c b/arch/x86/kvm/vmx.c index a91a5b01f38e..f81a8e44ae52 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -8709,7 +8709,7 @@ static void atomic_switch_perf_msrs(struct vcpu_vmx *vmx) msrs[i].host); } -void vmx_arm_hv_timer(struct kvm_vcpu *vcpu) +static void vmx_arm_hv_timer(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); u64 tscl;