diff --git a/mm/slub.c b/mm/slub.c index 8da34a8af53d58754ff4a394f26f6f252cbafbe0..f01a6b816d9a3055589968f437d8b97f31c6ea53 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1076,8 +1076,7 @@ static void setup_object_debug(struct kmem_cache *s, struct page *page, } static inline int alloc_consistency_checks(struct kmem_cache *s, - struct page *page, - void *object, unsigned long addr) + struct page *page, void *object) { if (!check_slab(s, page)) return 0; @@ -1098,7 +1097,7 @@ static noinline int alloc_debug_processing(struct kmem_cache *s, void *object, unsigned long addr) { if (s->flags & SLAB_CONSISTENCY_CHECKS) { - if (!alloc_consistency_checks(s, page, object, addr)) + if (!alloc_consistency_checks(s, page, object)) goto bad; }