diff options
author | Henrik Kretzschmar <henne@nachtwindheim.de> | 2010-03-29 04:15:31 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-03-29 04:15:31 -0400 |
commit | 975d260355fca4734b545a0e3366672af0356905 (patch) | |
tree | 821f50038706bc50e923a7e86fcaa0d28db88527 /kernel | |
parent | 62e7bec49479e0c61e8cfd914f722a9ca6fd52e5 (diff) |
padata: Section cleanup
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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/padata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/padata.c b/kernel/padata.c index 6f9bcb8313d6..0282478bc584 100644 --- a/kernel/padata.c +++ b/kernel/padata.c | |||
@@ -569,8 +569,8 @@ void padata_stop(struct padata_instance *pinst) | |||
569 | } | 569 | } |
570 | EXPORT_SYMBOL(padata_stop); | 570 | EXPORT_SYMBOL(padata_stop); |
571 | 571 | ||
572 | static int __cpuinit padata_cpu_callback(struct notifier_block *nfb, | 572 | static int padata_cpu_callback(struct notifier_block *nfb, |
573 | unsigned long action, void *hcpu) | 573 | unsigned long action, void *hcpu) |
574 | { | 574 | { |
575 | int err; | 575 | int err; |
576 | struct padata_instance *pinst; | 576 | struct padata_instance *pinst; |