Subject: NR_EVENT_ITEMS and NR_VM_ZONE_STAT_ITEMS Not sure why yet.... Signed-off-by: Christoph Lameter --- include/linux/bounds.h | 2 ++ include/linux/mmzone.h | 2 +- include/linux/vmstat.h | 3 ++- kernel/bounds.c | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) Index: linux-2.6/include/linux/vmstat.h =================================================================== --- linux-2.6.orig/include/linux/vmstat.h 2008-02-29 18:18:19.000000000 -0800 +++ linux-2.6/include/linux/vmstat.h 2008-02-29 18:21:24.000000000 -0800 @@ -6,6 +6,7 @@ #include #include #include +#include #ifdef CONFIG_ZONE_DMA #define DMA_ZONE(xx) xx##_DMA, @@ -37,7 +38,7 @@ enum vm_event_item { PGPGIN, PGPGOUT, PS FOR_ALL_ZONES(PGSCAN_DIRECT), PGINODESTEAL, SLABS_SCANNED, KSWAPD_STEAL, KSWAPD_INODESTEAL, PAGEOUTRUN, ALLOCSTALL, PGROTATED, - NR_VM_EVENT_ITEMS + __NR_VM_EVENT_ITEMS }; #ifdef CONFIG_VM_EVENT_COUNTERS Index: linux-2.6/kernel/bounds.c =================================================================== --- linux-2.6.orig/kernel/bounds.c 2008-02-29 18:18:53.000000000 -0800 +++ linux-2.6/kernel/bounds.c 2008-02-29 18:21:56.000000000 -0800 @@ -15,4 +15,6 @@ void foo(void) { DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS); DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES); + DEFINE(NR_VM_EVENT_ITEMS, __NR_VM_EVENT_ITEMS); + DEFINE(NR_VM_ZONE_STAT_ITEMS, __NR_VM_ZONE_STAT_ITEMS); } Index: linux-2.6/include/linux/bounds.h =================================================================== --- linux-2.6.orig/include/linux/bounds.h 2008-02-29 18:20:32.000000000 -0800 +++ linux-2.6/include/linux/bounds.h 2008-02-29 18:24:47.000000000 -0800 @@ -9,5 +9,7 @@ #define NR_PAGEFLAGS 32 /* __NR_PAGEFLAGS # */ #define MAX_NR_ZONES 4 /* __MAX_NR_ZONES # */ +#define NR_VM_EVENT_ITEMS 36 /* __NR_VM_EVENT_ITEMS # */ +#define NR_VM_ZONE_STAT_ITEMS 14 /* __NR_VM_ZONE_STAT_ITEMS # */ #endif Index: linux-2.6/include/linux/mmzone.h =================================================================== --- linux-2.6.orig/include/linux/mmzone.h 2008-02-29 18:21:18.000000000 -0800 +++ linux-2.6/include/linux/mmzone.h 2008-02-29 18:21:24.000000000 -0800 @@ -104,7 +104,7 @@ enum zone_stat_item { NUMA_LOCAL, /* allocation from local node */ NUMA_OTHER, /* allocation from other node */ #endif - NR_VM_ZONE_STAT_ITEMS }; + __NR_VM_ZONE_STAT_ITEMS }; struct per_cpu_pages { int count; /* number of pages in the list */