diff options
author | Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> | 2008-08-19 13:43:25 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2008-12-29 08:33:59 -0500 |
commit | 35995a4d815586bc968a857f7235707940a2f755 (patch) | |
tree | bbee251d5e4fc027a07cb86b3428ba5f08dffab3 /mm/slab.c | |
parent | ed313489badef16d700f5a3be50e8fd8f8294bc8 (diff) |
SLUB: Replace __builtin_return_address(0) with _RET_IP_.
This patch replaces __builtin_return_address(0) with _RET_IP_, since a
previous patch moved _RET_IP_ and _THIS_IP_ to include/linux/kernel.h and
they're widely available now. This makes for shorter and easier to read
code.
[penberg@cs.helsinki.fi: remove _RET_IP_ casts to void pointer]
Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3686,9 +3686,9 @@ void *__kmalloc_node(size_t size, gfp_t flags, int node) | |||
3686 | EXPORT_SYMBOL(__kmalloc_node); | 3686 | EXPORT_SYMBOL(__kmalloc_node); |
3687 | 3687 | ||
3688 | void *__kmalloc_node_track_caller(size_t size, gfp_t flags, | 3688 | void *__kmalloc_node_track_caller(size_t size, gfp_t flags, |
3689 | int node, void *caller) | 3689 | int node, unsigned long caller) |
3690 | { | 3690 | { |
3691 | return __do_kmalloc_node(size, flags, node, caller); | 3691 | return __do_kmalloc_node(size, flags, node, (void *)caller); |
3692 | } | 3692 | } |
3693 | EXPORT_SYMBOL(__kmalloc_node_track_caller); | 3693 | EXPORT_SYMBOL(__kmalloc_node_track_caller); |
3694 | #else | 3694 | #else |
@@ -3730,9 +3730,9 @@ void *__kmalloc(size_t size, gfp_t flags) | |||
3730 | } | 3730 | } |
3731 | EXPORT_SYMBOL(__kmalloc); | 3731 | EXPORT_SYMBOL(__kmalloc); |
3732 | 3732 | ||
3733 | void *__kmalloc_track_caller(size_t size, gfp_t flags, void *caller) | 3733 | void *__kmalloc_track_caller(size_t size, gfp_t flags, unsigned long caller) |
3734 | { | 3734 | { |
3735 | return __do_kmalloc(size, flags, caller); | 3735 | return __do_kmalloc(size, flags, (void *)caller); |
3736 | } | 3736 | } |
3737 | EXPORT_SYMBOL(__kmalloc_track_caller); | 3737 | EXPORT_SYMBOL(__kmalloc_track_caller); |
3738 | 3738 | ||