slub: remove an unused addr argument
Subsystems (2)
PATCH 1/1 slub: remove an unused addr argument
"addr" function argument is not used in alloc_consistency_checks() at all, so remove it.
Fixes becfda68abca ("slub: convert SLAB_DEBUG_FREE to SLAB_CONSISTENCY_CHECKS")
Signed-off-by Qian Cai <[email protected]>
--- mm/slub.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
mm/slub.c +2 -3
@@ -1077,8 +1077,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 ;
@@ -1099,7 +1098,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; }
Signature · 1 line
2.17.2 (Apple Git-113)
Quoted 5 lines · Qian Cai
"addr" function argument is not used in
alloc_consistency_checks()at all, so remove it.Fixes becfda68abca ("slub: convert SLAB_DEBUG_FREE to SLAB_CONSISTENCY_CHECKS")Signed-off-by Qian Cai <[email protected]>
Acked-by David Rientjes <[email protected]>