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 --- devel/drivers/base/memory.c~memhotplug-register_memory-should-be-global 2005-12-22 05:08:46.000000000 -0800 +++ devel-akpm/drivers/base/memory.c 2005-12-22 05:08:46.000000000 -0800 @@ -62,8 +62,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; _