lkml.org 
[lkml]   [2018]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC PATCH] x86/kvm: perf_ext_supported() can be static

Fixes: 60e6688e74ee ("x86/kvm: Expose AMD Core Perf Extension flag to guests")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
cpuid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index 0c991c6a..5cfd3c2 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -55,7 +55,7 @@ bool kvm_mpx_supported(void)
}
EXPORT_SYMBOL_GPL(kvm_mpx_supported);

-bool perf_ext_supported(void)
+static bool perf_ext_supported(void)
{
return boot_cpu_has(X86_FEATURE_PERFCTR_CORE);
}
\
 
 \ /
  Last update: 2018-02-02 21:05    [W:0.093 / U:2.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site