Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2b484a2 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds
Browse files

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: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 165e4694
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -526,7 +526,7 @@ struct create_idle {
	int cpu;
	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 =
	struct create_idle *c_idle =
		container_of(work, struct create_idle, work);
		container_of(work, struct create_idle, work);