From: Andrew Morton arch/i386/kernel/cpu/common.c: In function `detect_ht': arch/i386/kernel/cpu/common.c:480: warning: unused variable `cpu' Cc: Rohit Seth Cc: Andi Kleen Signed-off-by: Andrew Morton --- arch/i386/kernel/cpu/common.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff -puN arch/i386/kernel/cpu/common.c~i386-moving-phys_proc_id-and-cpu_core_id-to-cpuinfo_x86-warning-fix arch/i386/kernel/cpu/common.c --- devel/arch/i386/kernel/cpu/common.c~i386-moving-phys_proc_id-and-cpu_core_id-to-cpuinfo_x86-warning-fix 2006-05-29 21:59:34.000000000 -0700 +++ devel-akpm/arch/i386/kernel/cpu/common.c 2006-05-29 21:59:34.000000000 -0700 @@ -477,11 +477,9 @@ void __cpuinit detect_ht(struct cpuinfo_ { u32 eax, ebx, ecx, edx; int index_msb, core_bits; - int cpu = smp_processor_id(); cpuid(1, &eax, &ebx, &ecx, &edx); - if (!cpu_has(c, X86_FEATURE_HT) || cpu_has(c, X86_FEATURE_CMP_LEGACY)) return; @@ -492,7 +490,8 @@ void __cpuinit detect_ht(struct cpuinfo_ } else if (smp_num_siblings > 1 ) { if (smp_num_siblings > NR_CPUS) { - printk(KERN_WARNING "CPU: Unsupported number of the siblings %d", smp_num_siblings); + printk(KERN_WARNING "CPU: Unsupported number of the " + "siblings %d", smp_num_siblings); smp_num_siblings = 1; return; } _