From: Heiko Carstens Date: Mon, 9 Jun 2008 22:49:57 +0000 (-0700) Subject: iucv: fix section mismatch warning. X-Git-Tag: v2.6.27-rc1~964^2~352 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1494ed1d318542baa9480cfd44d040a92635129;p=profile%2Fivi%2Fkernel-x86-ivi.git iucv: fix section mismatch warning. WARNING: net/iucv/built-in.o(.exit.text+0x9c): Section mismatch in reference from the function iucv_exit() to the variable .cpuinit.data:iucv_cpu_notifier This warning is caused by a reference from unregister_hotcpu_notifier() from an exit function to a cpuinitdata annotated data structurre. This is a false positive warning since for the non CPU_HOTPLUG case unregister_hotcpu_notifier() is a nop. Use __refdata instead of __cpuinitdata to get rid of the warning. Signed-off-by: Heiko Carstens Signed-off-by: Ursula Braun Signed-off-by: David S. Miller --- diff --git a/net/iucv/iucv.c b/net/iucv/iucv.c index 9189707..2d43175 100644 --- a/net/iucv/iucv.c +++ b/net/iucv/iucv.c @@ -598,7 +598,7 @@ static int __cpuinit iucv_cpu_notify(struct notifier_block *self, return NOTIFY_OK; } -static struct notifier_block __cpuinitdata iucv_cpu_notifier = { +static struct notifier_block __refdata iucv_cpu_notifier = { .notifier_call = iucv_cpu_notify, };