Skip to contentSkip to conversation

Label x86 do_fork_idle() with __cpuinit

PATCH In review David Howells 2 participants 2 messages Jan 8, 2008 x86

lore
Share & tools
lore
#0 lore raw

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.

---

 arch/x86/kernel/smpboot_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/smpboot_64.c +1 -1
index 500670c..aaf4e12 100644
@@ -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);
#1 lore raw
Quoted 2 lines · David Howells

Label x86 do_fork_idle() with __cpuinit to avoid getting linker warnings when it references fork_idle(). Also make it static.

Thomas is already working on this and has a patch for this and for other linker warnings.

Ingo