]> err.no Git - linux-2.6/commitdiff
x86: fix do_fork_idle section mismatch
authorThomas Gleixner <tglx@linutronix.de>
Tue, 8 Jan 2008 23:18:28 +0000 (00:18 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 Jan 2008 00:10:35 +0000 (16:10 -0800)
With CPU_HOTPLUG=n:

WARNING: vmlinux.o(.text+0x104f8): Section mismatch: reference to .init.text:fork_idle (between
'do_fork_idle' and 'lapic_timer_broadcast')

do_fork_idle() needs to be __cpuinit. It can be static as well.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/smpboot_64.c

index 500670c93d81d278e0402289803f5881946226b5..aaf4e1291217ef120d98cb3d7d98e55dd0debb79 100644 (file)
@@ -526,7 +526,7 @@ struct create_idle {
        int cpu;
 };
 
-void do_fork_idle(struct work_struct *work)
+static void __cpuinit do_fork_idle(struct work_struct *work)
 {
        struct create_idle *c_idle =
                container_of(work, struct create_idle, work);