From: Andy Whitcroft Date: Fri, 6 Jan 2006 08:10:35 +0000 (-0800) Subject: [PATCH] memhotplug: register_memory should be global X-Git-Tag: v2.6.16-rc1~936^2~279 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=900b2b463dc6e65ec474d6880412c63c25b3aea9;p=linux-2.6 [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/base/memory.c b/drivers/base/memory.c index 19fe93155f..58801d718c 100644 --- a/drivers/base/memory.c +++ b/drivers/base/memory.c @@ -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;