--- include/linux/mm.h | 2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6/include/linux/mm.h =================================================================== --- linux-2.6.orig/include/linux/mm.h 2008-03-03 16:15:55.395071738 -0800 +++ linux-2.6/include/linux/mm.h 2008-03-03 16:16:49.047411228 -0800 @@ -500,10 +500,12 @@ static inline struct zone *page_zone(str return &NODE_DATA(page_to_nid(page))->node_zones[page_zonenum(page)]; } +#if defined(CONFIG_SPARSEMEM) && !defined(CONFIG_SPARSEMEM_VMEMMAP) static inline unsigned long page_to_section(struct page *page) { return (page->flags >> SECTIONS_PGSHIFT) & SECTIONS_MASK; } +#endif static inline void set_page_zone(struct page *page, enum zone_type zone) {