diff --git a/mm/slub.c b/mm/slub.c index a10cf661cdae44a616e478ee1f420d3a24e203ab..5c5b9aed10a1072bf7d2e0429e62945d0fbfd4cd 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -311,7 +311,7 @@ static inline void set_freepointer(struct kmem_cache *s, void *object, void *fp) __p += (__s)->size, __idx++) /* Determine object index from a given position */ -static inline int slab_index(void *p, struct kmem_cache *s, void *addr) +static inline unsigned int slab_index(void *p, struct kmem_cache *s, void *addr) { return (p - addr) / s->size; }