aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2008-09-01 03:11:54 -0400
committerPekka Enberg <penberg@cs.helsinki.fi>2008-12-29 08:34:14 -0500
commit2e67624c22321fa40ad3aa89c307c84bd679d9b2 (patch)
tree59ff23c741060b51a03abdcb74f1e779fd72c2da /mm/slub.c
parent94b528d0564997d88e8bf166d8c9080536ad8bdc (diff)
kmemtrace: remove unnecessary casts
Now that we use _RET_IP_ there's no need to cast 'caller' to unsigned long. Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 4ce61c86f581..e27472368cc3 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -3269,8 +3269,8 @@ void *__kmalloc_track_caller(size_t size, gfp_t gfpflags, unsigned long caller)
3269 ret = slab_alloc(s, gfpflags, -1, caller); 3269 ret = slab_alloc(s, gfpflags, -1, caller);
3270 3270
3271 /* Honor the call site pointer we recieved. */ 3271 /* Honor the call site pointer we recieved. */
3272 kmemtrace_mark_alloc(KMEMTRACE_TYPE_KMALLOC, (unsigned long) caller, 3272 kmemtrace_mark_alloc(KMEMTRACE_TYPE_KMALLOC, caller, ret, size,
3273 ret, size, s->size, gfpflags); 3273 s->size, gfpflags);
3274 3274
3275 return ret; 3275 return ret;
3276} 3276}
@@ -3292,8 +3292,7 @@ void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags,
3292 ret = slab_alloc(s, gfpflags, node, caller); 3292 ret = slab_alloc(s, gfpflags, node, caller);
3293 3293
3294 /* Honor the call site pointer we recieved. */ 3294 /* Honor the call site pointer we recieved. */
3295 kmemtrace_mark_alloc_node(KMEMTRACE_TYPE_KMALLOC, 3295 kmemtrace_mark_alloc_node(KMEMTRACE_TYPE_KMALLOC, caller, ret,
3296 (unsigned long) caller, ret,
3297 size, s->size, gfpflags, node); 3296 size, s->size, gfpflags, node);
3298 3297
3299 return ret; 3298 return ret;