linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] padata: section cleanup
@ 2010-03-27  6:53 Henrik Kretzschmar
  2010-03-29  7:42 ` Steffen Klassert
  2010-03-29  8:15 ` Herbert Xu
  0 siblings, 2 replies; 17+ messages in thread
From: Henrik Kretzschmar @ 2010-03-27  6:53 UTC (permalink / raw)
  To: steffen.klassert; +Cc: herbert, linux-kernel, Henrik Kretzschmar

This patch removes the __cupinit from padata_cpu_callback(),
which is refered by the exportet function padata_alloc().

This could lead to problems if CONFIG_HOTPLUG_CPU is disabled,
which should happen very often.

WARNING: kernel/built-in.o(.text+0x7ffcb): Section mismatch in reference from the function padata_alloc() to the function .cpuinit.text:padata_cpu_callback()
The function padata_alloc() references
the function __cpuinit padata_cpu_callback().
This is often because padata_alloc lacks a __cpuinit
annotation or the annotation of padata_cpu_callback is wrong.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
---
 kernel/padata.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/padata.c b/kernel/padata.c
index 93caf65..32fdd5f 100644
--- a/kernel/padata.c
+++ b/kernel/padata.c
@@ -569,7 +569,7 @@ void padata_stop(struct padata_instance *pinst)
 }
 EXPORT_SYMBOL(padata_stop);
 
-static int __cpuinit padata_cpu_callback(struct notifier_block *nfb,
+static int padata_cpu_callback(struct notifier_block *nfb,
 					 unsigned long action, void *hcpu)
 {
 	int err;
-- 
1.7.0


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

end of thread, other threads:[~2010-04-30 18:05 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-27  6:53 [PATCH] padata: section cleanup Henrik Kretzschmar
2010-03-29  7:42 ` Steffen Klassert
2010-03-29  8:15 ` Herbert Xu
2010-03-31 21:58   ` Andrew Morton
2010-04-01  0:24     ` Herbert Xu
2010-03-31 22:04       ` Andrew Morton
2010-04-01  1:38         ` Herbert Xu
2010-04-01  0:29           ` Andrew Morton
2010-04-01  7:15             ` David Miller
2010-04-01 13:59               ` Andrew Morton
2010-04-01  8:11     ` Steffen Klassert
2010-04-01 21:59       ` Andrew Morton
2010-04-02  1:09         ` Herbert Xu
2010-04-02 11:23         ` Steffen Klassert
2010-04-06 18:00       ` Jonathan Corbet
2010-04-07 13:34         ` Steffen Klassert
2010-04-29 12:14         ` Steffen Klassert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).