aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-02-06 04:37:55 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-06 13:41:08 -0500
commit6b2fb3c65844452bb9e8b449d50863d1b36c5dc0 (patch)
tree2dee8421cd2b679e703b2ae8d7bdfafde7ef6d68 /kernel
parent6c81c32f9616fd6f2795dceae2f70943cb4d8609 (diff)
idle_regs() must be __cpuinit
Fix the following section mismatch with CONFIG_HOTPLUG=n, CONFIG_HOTPLUG_CPU=y: WARNING: vmlinux.o(.text+0x399a6): Section mismatch: reference to .init.text.5:idle_regs (between 'fork_idle' and 'get_task_mm') Signed-off-by: Adrian Bunk <bunk@kernel.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "Luck, Tony" <tony.luck@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 8adfe5ddb688..3995297567a9 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1399,7 +1399,7 @@ fork_out:
1399 return ERR_PTR(retval); 1399 return ERR_PTR(retval);
1400} 1400}
1401 1401
1402noinline struct pt_regs * __devinit __attribute__((weak)) idle_regs(struct pt_regs *regs) 1402noinline struct pt_regs * __cpuinit __attribute__((weak)) idle_regs(struct pt_regs *regs)
1403{ 1403{
1404 memset(regs, 0, sizeof(struct pt_regs)); 1404 memset(regs, 0, sizeof(struct pt_regs));
1405 return regs; 1405 return regs;