From: Thomas Gleixner Date: Tue, 8 Jan 2008 23:18:28 +0000 (+0100) Subject: x86: fix do_fork_idle section mismatch X-Git-Tag: v2.6.24-rc8~69 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a2b484a29cc9f565b013c0e7f1e0cc22dec12456;p=linux-2.6-omap-h63xx.git x86: fix do_fork_idle section mismatch 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 Signed-off-by: Ingo Molnar Signed-off-by: Linus Torvalds --- diff --git a/arch/x86/kernel/smpboot_64.c b/arch/x86/kernel/smpboot_64.c index 500670c93d8..aaf4e129121 100644 --- a/arch/x86/kernel/smpboot_64.c +++ b/arch/x86/kernel/smpboot_64.c @@ -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);