Skip to content

Commit 278d775

Browse files
Qian Caitorvalds
authored andcommitted
mm/slub.c: remove an unused addr argument
"addr" function argument is not used in alloc_consistency_checks() at all, so remove it. Link: http://lkml.kernel.org/r/20190211123214.35592-1-cai@lca.pw Fixes: becfda6 ("slub: convert SLAB_DEBUG_FREE to SLAB_CONSISTENCY_CHECKS") Signed-off-by: Qian Cai <cai@lca.pw> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: David Rientjes <rientjes@google.com> Cc: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent de810f4 commit 278d775

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mm/slub.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,8 +1093,7 @@ static void setup_page_debug(struct kmem_cache *s, void *addr, int order)
10931093
}
10941094

10951095
static inline int alloc_consistency_checks(struct kmem_cache *s,
1096-
struct page *page,
1097-
void *object, unsigned long addr)
1096+
struct page *page, void *object)
10981097
{
10991098
if (!check_slab(s, page))
11001099
return 0;
@@ -1115,7 +1114,7 @@ static noinline int alloc_debug_processing(struct kmem_cache *s,
11151114
void *object, unsigned long addr)
11161115
{
11171116
if (s->flags & SLAB_CONSISTENCY_CHECKS) {
1118-
if (!alloc_consistency_checks(s, page, object, addr))
1117+
if (!alloc_consistency_checks(s, page, object))
11191118
goto bad;
11201119
}
11211120

0 commit comments

Comments
 (0)