Label x86 do_fork_idle() with __cpuinit
PATCH 1/1 Label x86 do_fork_idle() with __cpuinit
Label x86 do_fork_idle() with __cpuinit to avoid getting linker warnings when it references fork_idle(). Also make it static.
Signed-off-by David Howells <[email protected]>
---
arch/x86/kernel/smpboot_64.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/smpboot_64.c +1 -1
@@ -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);
Quoted 2 lines · David Howells
Label x86
do_fork_idle()with__cpuinitto avoid getting linker warnings when it referencesfork_idle(). Also make it static.
Thomas is already working on this and has a patch for this and for other linker warnings.
Ingo