Messages in this thread Patch in this message | | | From | Sam Ravnborg <> | Subject | [PATCH] cpu: do not annotate exported register_cpu_notifier() | Date | Thu, 31 Jan 2008 23:10:34 +0100 |
| |
Fix following warning: WARNING: o-x86_64/kernel/built-in.o(__ksymtab+0xfb0): Section mismatch in reference from the variable __ksymtab_register_cpu_notifier to the function .cpuinit.text:register_cpu_notifier()
register_cpu_notifier() are used from modules that may be loaded long after init has completed. Drop the annotation so the function is kept after init.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Gautham R Shenoy <ego@in.ibm.com> --- kernel/cpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/cpu.c b/kernel/cpu.c index df9430f..6fc9864 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -136,7 +136,7 @@ static void cpu_hotplug_done(void) mutex_unlock(&cpu_hotplug.lock); } /* Need to know about CPUs going up/down? */ -int __cpuinit register_cpu_notifier(struct notifier_block *nb) +int register_cpu_notifier(struct notifier_block *nb) { int ret; cpu_maps_update_begin(); -- 1.5.4.rc3.14.g44397
| |