Index: linux-2.6.18-rc4-mm2/mm/kmalloc.c =================================================================== --- linux-2.6.18-rc4-mm2.orig/mm/kmalloc.c 2006-08-24 08:48:31.756475997 -0700 +++ linux-2.6.18-rc4-mm2/mm/kmalloc.c 2006-08-24 09:52:54.498309149 -0700 @@ -129,11 +129,13 @@ void __init kmalloc_init_array(int dma, &kmalloc_caches[dma][i - KMALLOC_SHIFT_LOW], name, pa, 1 << i); } +#ifdef ARCH_NEEDS_SMALL_SLABS /* Non-power of two caches */ create_kmalloc_cache(&kmalloc_caches[dma] [KMALLOC_SHIFT_HIGH - KMALLOC_SHIFT_LOW + 1], name, pa, 96); create_kmalloc_cache(&kmalloc_caches[dma] [KMALLOC_SHIFT_HIGH - KMALLOC_SHIFT_LOW + 2], name, pa, 192); +#endif } void __init kmalloc_init(void)