kvm: x86: make function static to avoid compiling warning
authorJiang Biao <jiang.biao2@zte.com.cn>
Thu, 3 Nov 2016 07:03:37 +0000 (15:03 +0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 16 Nov 2016 21:09:43 +0000 (22:09 +0100)
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 <jiang.biao2@zte.com.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c

index a91a5b01f38ef5e31b84c689912d374bc42133d5..f81a8e44ae5235f446d65f3544af5e7cb4290df4 100644 (file)
@@ -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;