[PATCH] Label x86 do_fork_idle() with __cpuinit

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <sam@...>, <ariveira@...>, <torvalds@...>, <akpm@...>
Cc: <linux-kernel@...>, <dhowells@...>
Date: Tuesday, January 8, 2008 - 7:23 am

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 <dhowells@redhat.com>
---

 arch/x86/kernel/smpboot_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/arch/x86/kernel/smpboot_64.c b/arch/x86/kernel/smpboot_64.c
index 500670c..aaf4e12 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);

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Label x86 do_fork_idle() with __cpuinit, David Howells, (Tue Jan 8, 7:23 am)
Re: [PATCH] Label x86 do_fork_idle() with __cpuinit, Ingo Molnar, (Tue Jan 8, 7:27 am)