This commit was generated by cvs2svn to compensate for changes in r1129,
[linux-2.6.git] / include / asm-mips / mmzone.h
index 27ad26c..011caeb 100644 (file)
@@ -5,12 +5,12 @@
 #ifndef _ASM_MMZONE_H_
 #define _ASM_MMZONE_H_
 
+#include <linux/config.h>
 #include <asm/page.h>
 #include <mmzone.h>
 
-extern struct pglist_data *node_data[];
+#ifdef CONFIG_DISCONTIGMEM
 
-#define NODE_DATA(n)           (node_data[(n)])
 #define kvaddr_to_nid(kvaddr)  pa_to_nid(__pa(kvaddr))
 #define pfn_to_nid(pfn)                pa_to_nid((pfn) << PAGE_SHIFT)
 
@@ -39,4 +39,6 @@ extern struct pglist_data *node_data[];
 /* XXX: FIXME -- wli */
 #define kern_addr_valid(addr)  (0)
 
+#endif /* CONFIG_DISCONTIGMEM */
+
 #endif /* _ASM_MMZONE_H_ */