diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2009-01-26 21:08:47 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-27 07:57:41 -0500 |
commit | bd0838fc48c174cd386447059a414318e78169e1 (patch) | |
tree | eb0de5b3fd512ff40142b7d378feb0334c676157 /arch/x86/kernel/cpu | |
parent | 0ee2ad84d36760c8e36a6a6729998dc7a4eacf38 (diff) |
x86: intel_cacheinfo: fix compiler warning
fix the following warning:
CC arch/x86/kernel/cpu/intel_cacheinfo.o
arch/x86/kernel/cpu/intel_cacheinfo.c:314: warning: 'cpuid4_cache_lookup' defined but not used
Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r-- | arch/x86/kernel/cpu/intel_cacheinfo.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/x86/kernel/cpu/intel_cacheinfo.c b/arch/x86/kernel/cpu/intel_cacheinfo.c index 58527a9fc404..51b5dfd67163 100644 --- a/arch/x86/kernel/cpu/intel_cacheinfo.c +++ b/arch/x86/kernel/cpu/intel_cacheinfo.c | |||
@@ -309,15 +309,6 @@ __cpuinit cpuid4_cache_lookup_regs(int index, | |||
309 | return 0; | 309 | return 0; |
310 | } | 310 | } |
311 | 311 | ||
312 | static int | ||
313 | __cpuinit cpuid4_cache_lookup(int index, struct _cpuid4_info *this_leaf) | ||
314 | { | ||
315 | struct _cpuid4_info_regs *leaf_regs = | ||
316 | (struct _cpuid4_info_regs *)this_leaf; | ||
317 | |||
318 | return cpuid4_cache_lookup_regs(index, leaf_regs); | ||
319 | } | ||
320 | |||
321 | static int __cpuinit find_num_cache_leaves(void) | 312 | static int __cpuinit find_num_cache_leaves(void) |
322 | { | 313 | { |
323 | unsigned int eax, ebx, ecx, edx; | 314 | unsigned int eax, ebx, ecx, edx; |
@@ -556,6 +547,15 @@ static void __cpuinit free_cache_attributes(unsigned int cpu) | |||
556 | per_cpu(cpuid4_info, cpu) = NULL; | 547 | per_cpu(cpuid4_info, cpu) = NULL; |
557 | } | 548 | } |
558 | 549 | ||
550 | static int | ||
551 | __cpuinit cpuid4_cache_lookup(int index, struct _cpuid4_info *this_leaf) | ||
552 | { | ||
553 | struct _cpuid4_info_regs *leaf_regs = | ||
554 | (struct _cpuid4_info_regs *)this_leaf; | ||
555 | |||
556 | return cpuid4_cache_lookup_regs(index, leaf_regs); | ||
557 | } | ||
558 | |||
559 | static void __cpuinit get_cpu_leaves(void *_retval) | 559 | static void __cpuinit get_cpu_leaves(void *_retval) |
560 | { | 560 | { |
561 | int j, *retval = _retval, cpu = smp_processor_id(); | 561 | int j, *retval = _retval, cpu = smp_processor_id(); |