aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2006-01-06 00:10:35 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 08:33:22 -0800
commit900b2b463dc6e65ec474d6880412c63c25b3aea9 (patch)
tree2de7c1df9decff48d97e4070350dd2288c65d818 /drivers/base
parent98a38ebdda69f1498be4f618d8d919695c8d6352 (diff)
downloadkernel_samsung_smdk4412-900b2b463dc6e65ec474d6880412c63c25b3aea9.zip
kernel_samsung_smdk4412-900b2b463dc6e65ec474d6880412c63c25b3aea9.tar.gz
kernel_samsung_smdk4412-900b2b463dc6e65ec474d6880412c63c25b3aea9.tar.bz2
[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>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/memory.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/base/memory.c b/drivers/base/memory.c
index 19fe931..58801d7 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;