arch/x86_64/kernel/setup.c: In function `amd_detect_cmp': arch/x86_64/kernel/setup.c:759: error: `cpu_core_id' undeclared (first use in this function) arch/x86_64/kernel/setup.c:759: error: (Each undeclared identifier is reported only once arch/x86_64/kernel/setup.c:759: error: for each function it appears in.) Signed-off-by: Rafael J. Wysocki Signed-off-by: Andrew Morton --- 25-akpm/arch/x86_64/kernel/setup.c | 6 ++++++ 1 files changed, 6 insertions(+) diff -puN arch/x86_64/kernel/setup.c~x86_64-final-support-for-amd-dual-core-fix-2 arch/x86_64/kernel/setup.c --- 25/arch/x86_64/kernel/setup.c~x86_64-final-support-for-amd-dual-core-fix-2 Fri Apr 8 17:17:50 2005 +++ 25-akpm/arch/x86_64/kernel/setup.c Fri Apr 8 17:17:50 2005 @@ -715,6 +715,7 @@ static void __init display_cacheinfo(str } } +#ifdef CONFIG_SMP /* * On a AMD dual core setup the lower bits of the APIC id distingush the cores. * Assumes number of cores is a power of two. @@ -742,6 +743,11 @@ static void __init amd_detect_cmp(struct printk(KERN_INFO "CPU %d(%d) -> Node %d -> Core %d\n", cpu, c->x86_num_cores, node, cpu_core_id[cpu]); } +#else +static void __init amd_detect_cmp(struct cpuinfo_x86 *c) +{ +} +#endif static int __init init_amd(struct cpuinfo_x86 *c) { _