2.6.16-rc5-mm1 memory-hotplug compile fix

From: KAMEZAWA Hiroyuki
Date: Thu Mar 02 2006 - 19:43:19 EST


Because zone_mem_map is removed, this warning appers at compile time.

include/linux/memory_hotplug.h:53: warning: 'struct page' declared inside parameter list

If CONFIG_FLAT_NODE_MEM_MAP==n (means CONFIG_FLATMEM || CONFIG_DISCONTIGMEM),
node_mem_map doesn't exist either. So this happens.

Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>
Index: testtree/include/linux/memory_hotplug.h
===================================================================
--- testtree.orig/include/linux/memory_hotplug.h
+++ testtree/include/linux/memory_hotplug.h
@@ -7,6 +7,7 @@
#include <linux/notifier.h>

#ifdef CONFIG_MEMORY_HOTPLUG
+struct page;
/*
* pgdat resizing functions
*/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/