[PATCH] memhotplug: register_memory should be global
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>
This commit is contained in:
parent
98a38ebdda
commit
900b2b463d
@ -62,8 +62,7 @@ void unregister_memory_notifier(struct notifier_block *nb)
|
|||||||
/*
|
/*
|
||||||
* register_memory - Setup a sysfs device for a memory block
|
* register_memory - Setup a sysfs device for a memory block
|
||||||
*/
|
*/
|
||||||
static int
|
int register_memory(struct memory_block *memory, struct mem_section *section,
|
||||||
register_memory(struct memory_block *memory, struct mem_section *section,
|
|
||||||
struct node *root)
|
struct node *root)
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
|
Loading…
Reference in New Issue
Block a user