Skip to content

Commit

Permalink
[PATCH] memhotplug: register_ and unregister_memory_notifier should b…
Browse files Browse the repository at this point in the history
…e global

Both register_memory_notifer and unregister_memory_notifier are global and
declared so in linux/memory.h.  Update the HOTPLUG specific definitions to
match.  This fixes a compile warning when HOTPLUG is enabled.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andy Whitcroft authored and Linus Torvalds committed Jan 6, 2006
1 parent 5ac24ee commit 98a38eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/base/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ static struct kset_uevent_ops memory_uevent_ops = {

static struct notifier_block *memory_chain;

static int register_memory_notifier(struct notifier_block *nb)
int register_memory_notifier(struct notifier_block *nb)
{
return notifier_chain_register(&memory_chain, nb);
}

static void unregister_memory_notifier(struct notifier_block *nb)
void unregister_memory_notifier(struct notifier_block *nb)
{
notifier_chain_unregister(&memory_chain, nb);
}
Expand Down

0 comments on commit 98a38eb

Please sign in to comment.