All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 32/32] hotplug_memory_notifier section annotation
@ 2008-11-22 17:38 Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2008-11-22 17:38 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel


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 <viro@zeniv.linux.org.uk>
---
 include/linux/memory.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/memory.h b/include/linux/memory.h
--- 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);			\
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-22 17:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-22 17:38 [PATCH 32/32] hotplug_memory_notifier section annotation Al Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.