]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
[PATCH] make kernels with CONFIG_X86_GENERIC and !CONFIG_SMP compilable
authorJiri Kosina <jikos@jikos.cz>
Fri, 6 Oct 2006 09:11:56 +0000 (11:11 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Oct 2006 18:15:12 +0000 (11:15 -0700)
CONFIG_X86_GENERIC is not exclusively CONFIG_SMP, as mach-default/ could
be compiled also for UP archs. The patch fixes compilation error in
include/asm/mach-summit/mach_apic.h in case CONFIG_X86_GENERIC && !CONFIG_SMP

Signed-off-by: Jiri Kosina <jikos@jikos.cz>
Acked-by: Keith Mannthey <kmannth@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-i386/smp.h

index 6aa1206f6e2a9b17ffd120f94625db0552916f71..bd59c1508e7127bd592bdd09d9d69e6a528ba3e9 100644 (file)
@@ -46,8 +46,6 @@ extern u8 x86_cpu_to_apicid[];
 
 #define cpu_physical_id(cpu)   x86_cpu_to_apicid[cpu]
 
-extern u8 apicid_2_node[];
-
 #ifdef CONFIG_HOTPLUG_CPU
 extern void cpu_exit_clear(void);
 extern void cpu_uninit(void);
@@ -101,6 +99,9 @@ extern unsigned int num_processors;
 #endif
 
 #ifndef __ASSEMBLY__
+
+extern u8 apicid_2_node[];
+
 #ifdef CONFIG_X86_LOCAL_APIC
 static __inline int logical_smp_processor_id(void)
 {