From: Andrew Morton arch/x86_64/kernel/setup.c: In function `amd_detect_cmp': arch/x86_64/kernel/setup.c:781: warning: unused variable `cpu' Cc: Andi Kleen Signed-off-by: Andrew Morton --- arch/x86_64/kernel/setup.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN arch/x86_64/kernel/setup.c~x86_64-mm-moving-phys_proc_id-and-cpu_core_id-to-cpuinfo_x86-warning-fix arch/x86_64/kernel/setup.c --- 25/arch/x86_64/kernel/setup.c~x86_64-mm-moving-phys_proc_id-and-cpu_core_id-to-cpuinfo_x86-warning-fix 2006-05-28 19:28:07.079265248 -0700 +++ 25-akpm/arch/x86_64/kernel/setup.c 2006-05-28 19:28:07.082264792 -0700 @@ -778,9 +778,9 @@ static int nearby_node(int apicid) static void __init amd_detect_cmp(struct cpuinfo_x86 *c) { #ifdef CONFIG_SMP - int cpu = smp_processor_id(); unsigned bits; #ifdef CONFIG_NUMA + int cpu = smp_processor_id(); int node = 0; unsigned apicid = hard_smp_processor_id(); #endif _