All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel/cpu.c: Section mismatch warning fix.
@ 2008-10-30  4:04 Rakib Mullick
  2008-10-30 18:26 ` Ingo Molnar
  2008-11-03 23:34 ` Andrew Morton
  0 siblings, 2 replies; 14+ messages in thread
From: Rakib Mullick @ 2008-10-30  4:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton, Ingo Molnar

 LD      kernel/built-in.o
WARNING: kernel/built-in.o(.text+0xb7c8): Section mismatch in
reference from the function notify_cpu_starting() to the variable
.cpuinit.data:cpu_chain
The function notify_cpu_starting() references
the variable __cpuinitdata cpu_chain.
This is often because notify_cpu_starting lacks a __cpuinitdata
annotation or the annotation of cpu_chain is wrong.

This patch fixes the above section mismatch warning. If anything else
please notice.
Thanks.

Signed-off-by: Md.Rakib H. Mullick <rakib.mullick@gmail.com>

--- linux-2.6-orig/kernel/cpu.c	2008-10-28 20:52:38.000000000 +0600
+++ linux-2.6/kernel/cpu.c	2008-10-28 22:46:22.000000000 +0600
@@ -462,7 +462,7 @@ out:
  * It must be called by the arch code on the new cpu, before the new cpu
  * enables interrupts and before the "boot" cpu returns from __cpu_up().
  */
-void notify_cpu_starting(unsigned int cpu)
+void __cpuinit notify_cpu_starting(unsigned int cpu)
 {
 	unsigned long val = CPU_STARTING;

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-11-04 13:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-30  4:04 [PATCH] kernel/cpu.c: Section mismatch warning fix Rakib Mullick
2008-10-30 18:26 ` Ingo Molnar
2008-11-02  1:59   ` Rakib Mullick
2008-11-03 10:15     ` Ingo Molnar
2008-11-03 23:34 ` Andrew Morton
2008-11-04  9:48   ` Ingo Molnar
2008-11-04 10:09     ` Sam Ravnborg
2008-11-04 10:09       ` Sam Ravnborg
2008-11-04 10:22       ` Ingo Molnar
2008-11-04 10:22         ` Ingo Molnar
2008-11-04 11:02         ` Sam Ravnborg
2008-11-04 11:02           ` Sam Ravnborg
2008-11-04 13:06           ` James Bottomley
2008-11-04 13:22             ` Sam Ravnborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.