|
@@ -466,7 +466,7 @@ static void get_map(struct kmem_cache *s, struct page *page, unsigned long *map)
|
|
|
set_bit(slab_index(p, s, addr), map);
|
|
|
}
|
|
|
|
|
|
-static inline int size_from_object(struct kmem_cache *s)
|
|
|
+static inline unsigned int size_from_object(struct kmem_cache *s)
|
|
|
{
|
|
|
if (s->flags & SLAB_RED_ZONE)
|
|
|
return s->size - s->red_left_pad;
|