Index: linux-2.6.19-rc6-mm1/include/linux/kmalloc.h =================================================================== --- linux-2.6.19-rc6-mm1.orig/include/linux/kmalloc.h 2006-11-28 15:28:50.000000000 -0800 +++ linux-2.6.19-rc6-mm1/include/linux/kmalloc.h 2006-11-28 15:31:26.000000000 -0800 @@ -5,8 +5,6 @@ #include /* kmalloc_sizes.h needs PAGE_SIZE */ #include /* kmalloc_sizes.h needs L1_CACHE_BYTES */ -#ifdef __KERNEL__ - /* Size description struct for general caches. */ struct cache_sizes { size_t cs_size; @@ -201,8 +199,8 @@ #define kmalloc_node_track_caller(size, flags, node) \ __kmalloc_node_track_caller(size, flags, node, \ __builtin_return_address(0)) -#endif -#else +#endif /* CONFIG_DEBUG_SLAB */ +#else /* CONFIG_NUMA */ static inline void *kmalloc_node(size_t size, gfp_t flags, int node) { return kmalloc(size, flags); @@ -210,12 +208,10 @@ #define kmalloc_node_track_caller(size, flags, node) \ kmalloc_track_caller(size, flags) -#endif +#endif /* CONFIG_NUMA */ extern void __init kmem_cache_init(void); extern int slab_is_available(void); extern int kmem_cache_reap(int); -#endif /* __KERNEL__ */ - #endif /* _LINUX_KMALLOC_H */ Index: linux-2.6.19-rc6-mm1/include/linux/slob.h =================================================================== --- linux-2.6.19-rc6-mm1.orig/include/linux/slob.h 2006-11-28 15:28:50.000000000 -0800 +++ linux-2.6.19-rc6-mm1/include/linux/slob.h 2006-11-28 15:31:26.000000000 -0800 @@ -1,8 +1,6 @@ #ifndef _LINUX_SLOB_H #define _LINUX_SLOB_H -#if defined(__KERNEL__) - #include /* SLOB allocator routines */ @@ -42,6 +40,4 @@ static inline void kmem_set_shrinker(kmem_cache_t *cachep, struct shrinker *shrinker) {} -#endif /* __KERNEL__ */ - #endif /* _LINUX_SLOB_H */