Skip to contentSkip to conversation

hotplug_memory_notifier section annotation

PATCH Applied Al Viro 1 participant 1 message Nov 22, 2008 MM core

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 32/32 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.

---
 include/linux/memory.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/memory.h +1 -1
@@ -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);			\
 }