high: Do not define totalhigh_pages if CONFIG_HIGHMEM is off. Signed-off-by: Christoph Lameter Index: linux-2.6.17-mm3/mm/page_alloc.c =================================================================== --- linux-2.6.17-mm3.orig/mm/page_alloc.c 2006-06-28 12:59:28.921196945 -0700 +++ linux-2.6.17-mm3/mm/page_alloc.c 2006-06-28 13:07:37.098976698 -0700 @@ -52,7 +52,9 @@ EXPORT_SYMBOL(node_online_map); nodemask_t node_possible_map __read_mostly = NODE_MASK_ALL; EXPORT_SYMBOL(node_possible_map); unsigned long totalram_pages __read_mostly; +#ifdef CONFIG_HIGHMEM unsigned long totalhigh_pages __read_mostly; +#endif unsigned long totalreserve_pages __read_mostly; long nr_swap_pages; int percpu_pagelist_fraction; Index: linux-2.6.17-mm3/include/linux/swap.h =================================================================== --- linux-2.6.17-mm3.orig/include/linux/swap.h 2006-06-27 09:40:23.782822527 -0700 +++ linux-2.6.17-mm3/include/linux/swap.h 2006-06-28 13:07:37.099953200 -0700 @@ -162,7 +162,11 @@ extern void swapin_readahead(swp_entry_t /* linux/mm/page_alloc.c */ extern unsigned long totalram_pages; +#ifdef CONFIG_HIGHMEM extern unsigned long totalhigh_pages; +#else +#define totalhigh_pages 0 +#endif extern unsigned long totalreserve_pages; extern long nr_swap_pages; extern unsigned int nr_free_pages(void);