From: Andy Whitcroft Both register_memory_notifer and unregister_memory_notifier are global and declared so in linux/memory.h. Update the HOTPLUG specific definitions 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 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/base/memory.c~memhotplug-register_-and-unregister_memory_notifier-should-be-global drivers/base/memory.c --- 25/drivers/base/memory.c~memhotplug-register_-and-unregister_memory_notifier-should-be-global Mon Nov 14 17:12:58 2005 +++ 25-akpm/drivers/base/memory.c Mon Nov 14 17:15:01 2005 @@ -50,12 +50,12 @@ static struct kset_hotplug_ops memory_ho static struct notifier_block *memory_chain; -static int register_memory_notifier(struct notifier_block *nb) +int register_memory_notifier(struct notifier_block *nb) { return notifier_chain_register(&memory_chain, nb); } -static void unregister_memory_notifier(struct notifier_block *nb) +void unregister_memory_notifier(struct notifier_block *nb) { notifier_chain_unregister(&memory_chain, nb); } _