Skip to content

Commit

Permalink
[PATCH] memhotplug: register_memory should be global
Browse files Browse the repository at this point in the history
register_memory is global and declared so in linux/memory.h.  Update the
HOTPLUG specific definition 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 98a38eb commit 900b2b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/base/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ void unregister_memory_notifier(struct notifier_block *nb)
/*
* register_memory - Setup a sysfs device for a memory block
*/
static int
register_memory(struct memory_block *memory, struct mem_section *section,
int register_memory(struct memory_block *memory, struct mem_section *section,
struct node *root)
{
int error;
Expand Down

0 comments on commit 900b2b4

Please sign in to comment.