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://openfabrics.org/gitweb/?a=commitdiff_plain;h=900b2b463dc6e65ec474d6880412c63c25b3aea9;p=~emulex%2Finfiniband.git [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 19fe93155fe..58801d718cc 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;