From: Dave Jones Date: Fri, 8 Jul 2005 00:56:39 +0000 (-0700) Subject: [PATCH] Fix up non-NUMA breakage in mmzone.h X-Git-Tag: v2.6.13-rc3~263 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=e8af300c3bd87b2310f1e7a642f37e0fe49a754b;p=~emulex%2Finfiniband.git [PATCH] Fix up non-NUMA breakage in mmzone.h If CONFIG_NUMA isn't set, we use the define in for early_pfn_to_nid (which defines it to 0). Because of this, the prototype needs to move inside the CONFIG_NUMA too, or anal gcc's get really confused. Signed-off-by: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-i386/mmzone.h b/include/asm-i386/mmzone.h index 08e3cfd8632..516421300ea 100644 --- a/include/asm-i386/mmzone.h +++ b/include/asm-i386/mmzone.h @@ -37,6 +37,8 @@ static inline void get_memcfg_numa(void) get_memcfg_numa_flat(); } +extern int early_pfn_to_nid(unsigned long pfn); + #else /* !CONFIG_NUMA */ #define get_memcfg_numa get_memcfg_numa_flat #define get_zholes_size(n) (0) @@ -149,6 +151,4 @@ static inline int pfn_valid(int pfn) #endif /* CONFIG_NEED_MULTIPLE_NODES */ -extern int early_pfn_to_nid(unsigned long pfn); - #endif /* _ASM_MMZONE_H_ */