mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
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>
This commit is contained in:
parent
0ee2ad84d3
commit
bd0838fc48
@ -309,15 +309,6 @@ __cpuinit cpuid4_cache_lookup_regs(int index,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
__cpuinit cpuid4_cache_lookup(int index, struct _cpuid4_info *this_leaf)
|
|
||||||
{
|
|
||||||
struct _cpuid4_info_regs *leaf_regs =
|
|
||||||
(struct _cpuid4_info_regs *)this_leaf;
|
|
||||||
|
|
||||||
return cpuid4_cache_lookup_regs(index, leaf_regs);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int __cpuinit find_num_cache_leaves(void)
|
static int __cpuinit find_num_cache_leaves(void)
|
||||||
{
|
{
|
||||||
unsigned int eax, ebx, ecx, edx;
|
unsigned int eax, ebx, ecx, edx;
|
||||||
@ -556,6 +547,15 @@ static void __cpuinit free_cache_attributes(unsigned int cpu)
|
|||||||
per_cpu(cpuid4_info, cpu) = NULL;
|
per_cpu(cpuid4_info, cpu) = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
__cpuinit cpuid4_cache_lookup(int index, struct _cpuid4_info *this_leaf)
|
||||||
|
{
|
||||||
|
struct _cpuid4_info_regs *leaf_regs =
|
||||||
|
(struct _cpuid4_info_regs *)this_leaf;
|
||||||
|
|
||||||
|
return cpuid4_cache_lookup_regs(index, leaf_regs);
|
||||||
|
}
|
||||||
|
|
||||||
static void __cpuinit get_cpu_leaves(void *_retval)
|
static void __cpuinit get_cpu_leaves(void *_retval)
|
||||||
{
|
{
|
||||||
int j, *retval = _retval, cpu = smp_processor_id();
|
int j, *retval = _retval, cpu = smp_processor_id();
|
||||||
|
Loading…
Reference in New Issue
Block a user