summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorJiang Biao <jiang.biao2@zte.com.cn>2016-11-03 15:03:37 +0800
committerRadim Krčmář <rkrcmar@redhat.com>2016-11-16 22:09:43 +0100
commit33365e7a454fd40d30d11bf0d9147e059b22e099 (patch)
tree318ab15e2216e692249e03661201ec64d0d66a6c /arch/x86/kvm
parent813ae37e6aed72cc457094b6066aa38efd66c9e9 (diff)
downloadop-kernel-dev-33365e7a454fd40d30d11bf0d9147e059b22e099.zip
op-kernel-dev-33365e7a454fd40d30d11bf0d9147e059b22e099.tar.gz
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 <jiang.biao2@zte.com.cn> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index a91a5b0..f81a8e4 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;
OpenPOWER on IntegriCloud