diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-10-28 09:33:09 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-10-28 11:11:00 -0400 |
commit | c017b4be3e84176cab10eca5e6c4faeb8cfc6f3e (patch) | |
tree | b858895759880262dff8754ef58b3e716bebae2c /mm/slab.c | |
parent | e7cb55b946a2182c347047dc903c6ed0daef100c (diff) |
kmemleak: Simplify the kmemleak_scan_area() function prototype
This function was taking non-necessary arguments which can be determined
by kmemleak. The patch also modifies the calling sites.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2584,8 +2584,8 @@ static struct slab *alloc_slabmgmt(struct kmem_cache *cachep, void *objp, | |||
2584 | * kmemleak does not treat the ->s_mem pointer as a reference | 2584 | * kmemleak does not treat the ->s_mem pointer as a reference |
2585 | * to the object. Otherwise we will not report the leak. | 2585 | * to the object. Otherwise we will not report the leak. |
2586 | */ | 2586 | */ |
2587 | kmemleak_scan_area(slabp, offsetof(struct slab, list), | 2587 | kmemleak_scan_area(&slabp->list, sizeof(struct list_head), |
2588 | sizeof(struct list_head), local_flags); | 2588 | local_flags); |
2589 | if (!slabp) | 2589 | if (!slabp) |
2590 | return NULL; | 2590 | return NULL; |
2591 | } else { | 2591 | } else { |