diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-04-29 03:58:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:05:59 -0400 |
commit | 9647155ffbce9dffed8a9a4768c8994334b609db (patch) | |
tree | da905e9965a2f5932fb56be66836b1b8804b5f3f /kernel | |
parent | f718e31819857825315300ea3c2dbc3f26ff3b0e (diff) |
cpu: fix section mismatch warning in unregister_cpu_notifier
Fix following warning:
WARNING: vmlinux.o(.text+0x75f4e): Section mismatch in reference from the function unregister_cpu_notifier() to the variable .cpuinit.data:cpu_chain
We know that unregister_cpu_notifier is using HOTPLUG_CPU
stuff - so ignore these references.
Annotating unregister_cpu_notifier had been another option
but this caused far more warnings since not all callers were
annotated __cpuinit.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Gautham R Shenoy <ego@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 2011ad8d2697..da31165fd298 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c | |||
@@ -149,7 +149,7 @@ int __cpuinit register_cpu_notifier(struct notifier_block *nb) | |||
149 | 149 | ||
150 | EXPORT_SYMBOL(register_cpu_notifier); | 150 | EXPORT_SYMBOL(register_cpu_notifier); |
151 | 151 | ||
152 | void unregister_cpu_notifier(struct notifier_block *nb) | 152 | void __ref unregister_cpu_notifier(struct notifier_block *nb) |
153 | { | 153 | { |
154 | cpu_maps_update_begin(); | 154 | cpu_maps_update_begin(); |
155 | raw_notifier_chain_unregister(&cpu_chain, nb); | 155 | raw_notifier_chain_unregister(&cpu_chain, nb); |