mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] x86/cpu/cacheinfo: num_cache_leaves should be static
@ 2015-09-27 15:40 Geliang Tang
  2015-09-27 15:40 ` [PATCH 2/2] x86/cpu/cacheinfo: amd_get/set_l3_disable_slot " Geliang Tang
  0 siblings, 1 reply; 3+ messages in thread
From: Geliang Tang @ 2015-09-27 15:40 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86,
	Borislav Petkov, Sudeep Holla, Andrew Morton, Tejun Heo
  Cc: Geliang Tang, linux-kernel

Fixes the following sparse warning:

arch/x86/kernel/cpu/intel_cacheinfo.c:160:33: warning: symbol
'num_cache_leaves' was not declared. Should it be static?

Signed-off-by: Geliang Tang <geliangtang@163.com>
---
 arch/x86/kernel/cpu/intel_cacheinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/intel_cacheinfo.c b/arch/x86/kernel/cpu/intel_cacheinfo.c
index be4febc..6245a3c 100644
--- a/arch/x86/kernel/cpu/intel_cacheinfo.c
+++ b/arch/x86/kernel/cpu/intel_cacheinfo.c
@@ -157,7 +157,7 @@ struct _cpuid4_info_regs {
 	struct amd_northbridge *nb;
 };
 
-unsigned short			num_cache_leaves;
+static unsigned short num_cache_leaves;
 
 /* AMD doesn't have CPUID4. Emulate it here to report the same
    information to the user.  This makes some assumptions about the machine:
-- 
2.5.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-28  7:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-27 15:40 [PATCH 1/2] x86/cpu/cacheinfo: num_cache_leaves should be static Geliang Tang
2015-09-27 15:40 ` [PATCH 2/2] x86/cpu/cacheinfo: amd_get/set_l3_disable_slot " Geliang Tang
2015-09-28  7:25   ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome