Unsigned int for max required in transfer_objects otherwise the compiler will issue a warning. Signed-off-by: Christoph Lameter Index: linux-2.6.16-rc6-mm2/mm/slab.c =================================================================== --- linux-2.6.16-rc6-mm2.orig/mm/slab.c 2006-03-21 14:55:09.000000000 -0800 +++ linux-2.6.16-rc6-mm2/mm/slab.c 2006-03-21 17:42:58.000000000 -0800 @@ -908,7 +908,7 @@ static struct array_cache *alloc_arrayca * Return the number of entries transferred. */ static int transfer_objects(struct array_cache *to, - struct array_cache *from, int max) + struct array_cache *from, unsigned int max) { /* Figure out how many entries to transfer */ int nr = min(min(from->avail, max), to->limit - to->avail);