Index: linux-2.6.21-rc7/include/linux/slub_def.h =================================================================== --- linux-2.6.21-rc7.orig/include/linux/slub_def.h 2007-04-24 23:50:27.000000000 -0700 +++ linux-2.6.21-rc7/include/linux/slub_def.h 2007-04-24 23:51:08.000000000 -0700 @@ -84,7 +84,7 @@ extern struct kmem_cache kmalloc_caches[ * Sorry that the following has to be that ugly but some versions of GCC * have trouble with constant propagation and loops. */ -static inline int kmalloc_index(int size) +static __always_inline int kmalloc_index(int size) { if (size == 0) return 0;