From: Christoph Lameter Need #ifdef CONFIG_NUMA since node field is only defined for NUMA Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton --- include/linux/mm.h | 4 ++++ 1 files changed, 4 insertions(+) diff -puN include/linux/mm.h~add-node-to-zone-for-the-numa-case-fix include/linux/mm.h --- a/include/linux/mm.h~add-node-to-zone-for-the-numa-case-fix +++ a/include/linux/mm.h @@ -446,7 +446,11 @@ static inline struct zone *page_zone(str static inline unsigned long zone_to_nid(struct zone *zone) { +#ifdef CONFIG_NUMA return zone->node; +#else + return 0; +#endif } static inline unsigned long page_to_nid(struct page *page) _