From: Al Viro Date: Sat, 22 Nov 2008 17:38:34 +0000 (+0000) Subject: hotplug_memory_notifier section annotation X-Git-Tag: v2.6.28-rc7~60 X-Git-Url: http://pilppa.org/gitweb/?a=commitdiff_plain;h=02d0e6753d8ab0173b63338157929e52eac86d12;p=linux-2.6-omap-h63xx.git hotplug_memory_notifier section annotation Same as for hotplug_cpu - we want static notifier_block in there in meminitdata, to avoid false positives whenever it's used. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/include/linux/memory.h b/include/linux/memory.h index 2f5f8a5ef2a..36c82c9e6ea 100644 --- a/include/linux/memory.h +++ b/include/linux/memory.h @@ -91,7 +91,7 @@ extern int memory_notify(unsigned long val, void *v); #ifdef CONFIG_MEMORY_HOTPLUG #define hotplug_memory_notifier(fn, pri) { \ - static struct notifier_block fn##_mem_nb = \ + static __meminitdata struct notifier_block fn##_mem_nb =\ { .notifier_call = fn, .priority = pri }; \ register_memory_notifier(&fn##_mem_nb); \ }