Remove some #includes for slab and convert some others to kmalloc.h mempolicy.h realy does not need slab at all. So drop the include. Some other .h files really only need kmalloc so we can switch from slab.h to kmalloc.h. Many of the .c files in mm/* also do not use the slab definitions. Switch to the use of kmalloc.h. Signed-off-by: Christoph Lameter Index: linux-2.6.19-rc6-mm1/include/linux/mempolicy.h =================================================================== --- linux-2.6.19-rc6-mm1.orig/include/linux/mempolicy.h 2006-11-27 21:56:49.000000000 -0800 +++ linux-2.6.19-rc6-mm1/include/linux/mempolicy.h 2006-11-27 21:59:38.000000000 -0800 @@ -29,7 +29,6 @@ #ifdef __KERNEL__ #include -#include #include #include #include Index: linux-2.6.19-rc6-mm1/include/linux/percpu.h =================================================================== --- linux-2.6.19-rc6-mm1.orig/include/linux/percpu.h 2006-11-27 21:56:49.000000000 -0800 +++ linux-2.6.19-rc6-mm1/include/linux/percpu.h 2006-11-27 21:59:38.000000000 -0800 @@ -2,7 +2,7 @@ #define __LINUX_PERCPU_H #include /* For preempt_disable() */ -#include /* For kmalloc() */ +#include #include #include /* For memset() */ #include Index: linux-2.6.19-rc6-mm1/mm/page-writeback.c =================================================================== --- linux-2.6.19-rc6-mm1.orig/mm/page-writeback.c 2006-11-27 21:56:49.000000000 -0800 +++ linux-2.6.19-rc6-mm1/mm/page-writeback.c 2006-11-27 21:59:38.000000000 -0800 @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include Index: linux-2.6.19-rc6-mm1/mm/page_alloc.c =================================================================== --- linux-2.6.19-rc6-mm1.orig/mm/page_alloc.c 2006-11-27 21:56:49.000000000 -0800 +++ linux-2.6.19-rc6-mm1/mm/page_alloc.c 2006-11-27 21:59:38.000000000 -0800 @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include #include Index: linux-2.6.19-rc6-mm1/mm/swapfile.c =================================================================== --- linux-2.6.19-rc6-mm1.orig/mm/swapfile.c 2006-11-27 21:56:49.000000000 -0800 +++ linux-2.6.19-rc6-mm1/mm/swapfile.c 2006-11-27 21:59:38.000000000 -0800 @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include #include Index: linux-2.6.19-rc6-mm1/mm/util.c =================================================================== --- linux-2.6.19-rc6-mm1.orig/mm/util.c 2006-11-27 21:56:49.000000000 -0800 +++ linux-2.6.19-rc6-mm1/mm/util.c 2006-11-27 21:59:38.000000000 -0800 @@ -1,4 +1,4 @@ -#include +#include #include #include #include Index: linux-2.6.19-rc6-mm1/mm/vmalloc.c =================================================================== --- linux-2.6.19-rc6-mm1.orig/mm/vmalloc.c 2006-11-27 21:56:49.000000000 -0800 +++ linux-2.6.19-rc6-mm1/mm/vmalloc.c 2006-11-27 21:59:38.000000000 -0800 @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include Index: linux-2.6.19-rc6-mm1/mm/vmscan.c =================================================================== --- linux-2.6.19-rc6-mm1.orig/mm/vmscan.c 2006-11-27 21:56:49.000000000 -0800 +++ linux-2.6.19-rc6-mm1/mm/vmscan.c 2006-11-27 21:59:38.000000000 -0800 @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include #include