mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 06:03:24 +00:00
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>
This commit is contained in:
parent
94b528d056
commit
2e67624c22
@ -3269,8 +3269,8 @@ void *__kmalloc_track_caller(size_t size, gfp_t gfpflags, unsigned long caller)
|
|||||||
ret = slab_alloc(s, gfpflags, -1, caller);
|
ret = slab_alloc(s, gfpflags, -1, caller);
|
||||||
|
|
||||||
/* Honor the call site pointer we recieved. */
|
/* Honor the call site pointer we recieved. */
|
||||||
kmemtrace_mark_alloc(KMEMTRACE_TYPE_KMALLOC, (unsigned long) caller,
|
kmemtrace_mark_alloc(KMEMTRACE_TYPE_KMALLOC, caller, ret, size,
|
||||||
ret, size, s->size, gfpflags);
|
s->size, gfpflags);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -3292,8 +3292,7 @@ void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags,
|
|||||||
ret = slab_alloc(s, gfpflags, node, caller);
|
ret = slab_alloc(s, gfpflags, node, caller);
|
||||||
|
|
||||||
/* Honor the call site pointer we recieved. */
|
/* Honor the call site pointer we recieved. */
|
||||||
kmemtrace_mark_alloc_node(KMEMTRACE_TYPE_KMALLOC,
|
kmemtrace_mark_alloc_node(KMEMTRACE_TYPE_KMALLOC, caller, ret,
|
||||||
(unsigned long) caller, ret,
|
|
||||||
size, s->size, gfpflags, node);
|
size, s->size, gfpflags, node);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user