From: Andy Whitcroft 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 Signed-off-by: Andrew Morton --- drivers/base/memory.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -puN drivers/base/memory.c~memhotplug-register_memory-should-be-global drivers/base/memory.c --- 25/drivers/base/memory.c~memhotplug-register_memory-should-be-global Mon Nov 14 17:15:14 2005 +++ 25-akpm/drivers/base/memory.c Mon Nov 14 17:15:36 2005 @@ -63,8 +63,7 @@ void unregister_memory_notifier(struct n /* * 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; _