Index: linux-2.6.21-rc5/include/linux/slab.h =================================================================== --- linux-2.6.21-rc5.orig/include/linux/slab.h 2007-03-25 15:56:23.000000000 -0700 +++ linux-2.6.21-rc5/include/linux/slab.h 2007-03-26 16:15:06.000000000 -0700 @@ -73,7 +73,7 @@ static inline void *kmem_cache_alloc_nod void *__kmalloc(size_t, gfp_t); void *__kzalloc(size_t, gfp_t); void kfree(const void *); -unsigned int ksize(const void *); +size_t ksize(const void *); /** * kcalloc - allocate memory for an array. The memory is set to zero. Index: linux-2.6.21-rc5/mm/slab.c =================================================================== --- linux-2.6.21-rc5.orig/mm/slab.c 2007-03-26 16:15:02.000000000 -0700 +++ linux-2.6.21-rc5/mm/slab.c 2007-03-26 16:15:10.000000000 -0700 @@ -4478,7 +4478,7 @@ const struct seq_operations slabstats_op * allocated with either kmalloc() or kmem_cache_alloc(). The object * must not be freed during the duration of the call. */ -unsigned int ksize(const void *objp) +size_t ksize(const void *objp) { if (unlikely(objp == NULL)) return 0;