Skip to content

Commit

Permalink
hotplug_memory_notifier section annotation
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Nov 30, 2008
1 parent d3a307f commit 02d0e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
}
Expand Down

0 comments on commit 02d0e67

Please sign in to comment.