summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Hao <peng.hao2@zte.com.cn>2018-04-07 05:47:32 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2018-04-06 18:20:31 +0200
commite01bca2fc698d7f0626f0214001af523e18ad60b (patch)
tree02e13ae7c8f8f025e1d080c088277dbe0fb0bafe
parent6089ae0bd5e15fc150adce5bc694e87e00513825 (diff)
downloadop-kernel-dev-e01bca2fc698d7f0626f0214001af523e18ad60b.zip
op-kernel-dev-e01bca2fc698d7f0626f0214001af523e18ad60b.tar.gz
kvm: x86: fix a prototype warning
Make the function static to avoid a warning: no previous prototype for ‘vmx_enable_tdp’ Signed-off-by: Peng Hao <peng.hao2@zte.com.cn> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-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 59d9151..ce639e0 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -7223,7 +7223,7 @@ static void wakeup_handler(void)
spin_unlock(&per_cpu(blocked_vcpu_on_cpu_lock, cpu));
}
-void vmx_enable_tdp(void)
+static void vmx_enable_tdp(void)
{
kvm_mmu_set_mask_ptes(VMX_EPT_READABLE_MASK,
enable_ept_ad_bits ? VMX_EPT_ACCESS_BIT : 0ull,
OpenPOWER on IntegriCloud