From: Andrew Morton mm/page_alloc.c: In function 'page_alloc_cpu_notify': mm/page_alloc.c:2143: error: 'per_cpu__page_states' undeclared (first use in this function) mm/page_alloc.c:2143: error: (Each undeclared identifier is reported only once mm/page_alloc.c:2143: error: for each function it appears in.) mm/page_alloc.c:2143: warning: type defaults to 'int' in declaration of 'type name' mm/page_alloc.c:2143: error: invalid type argument of 'unary *' mm/page_alloc.c:2144: warning: type defaults to 'int' in declaration of 'type name' mm/page_alloc.c:2144: error: invalid type argument of 'unary *' distcc[11685] ERROR: compile mm/page_alloc.c on pmac/16 failed make[1]: *** [mm/page_alloc.o] Error 1 make: *** [mm/page_alloc.o] Error 2 I already fixed this once. Cc: Christoph Lameter Signed-off-by: Andrew Morton --- include/linux/vmstat.h | 3 +++ mm/vmstat.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff -puN mm/page_alloc.c~zoned-vm-counters-create-vmstatc-h-from-page_allocc-h-fix mm/page_alloc.c diff -puN mm/vmstat.c~zoned-vm-counters-create-vmstatc-h-from-page_allocc-h-fix mm/vmstat.c --- a/mm/vmstat.c~zoned-vm-counters-create-vmstatc-h-from-page_allocc-h-fix +++ a/mm/vmstat.c @@ -13,7 +13,7 @@ * The result is unavoidably approximate - it can change * during and after execution of this function. */ -static DEFINE_PER_CPU(struct page_state, page_states) = {0}; +DEFINE_PER_CPU(struct page_state, page_states) = {0}; atomic_t nr_pagecache = ATOMIC_INIT(0); EXPORT_SYMBOL(nr_pagecache); diff -puN include/linux/vmstat.h~zoned-vm-counters-create-vmstatc-h-from-page_allocc-h-fix include/linux/vmstat.h --- a/include/linux/vmstat.h~zoned-vm-counters-create-vmstatc-h-from-page_allocc-h-fix +++ a/include/linux/vmstat.h @@ -2,6 +2,7 @@ #define _LINUX_VMSTAT_H #include +#include /* * Global page accounting. One instance per CPU. Only unsigned longs are @@ -131,5 +132,7 @@ extern void __mod_page_state_offset(unsi mod_page_state_offset(state_zone_offset(zone, member), (delta)); \ } while (0) +DECLARE_PER_CPU(struct page_state, page_states); + #endif /* _LINUX_VMSTAT_H */ _