diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-30 03:55:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 11:29:53 -0400 |
commit | d40cee245ff6ad05d3448401d7320be82c1c5af1 (patch) | |
tree | 5467cada898e80d5e43592393b21252312c908fa /mm/slab.c | |
parent | d7853d1f8932c847a8d7b3b38e6baedf77148cfb (diff) |
mm: remove remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -861,7 +861,7 @@ static void cache_estimate(unsigned long gfporder, size_t buffer_size, | |||
861 | *left_over = slab_size - nr_objs*buffer_size - mgmt_size; | 861 | *left_over = slab_size - nr_objs*buffer_size - mgmt_size; |
862 | } | 862 | } |
863 | 863 | ||
864 | #define slab_error(cachep, msg) __slab_error(__FUNCTION__, cachep, msg) | 864 | #define slab_error(cachep, msg) __slab_error(__func__, cachep, msg) |
865 | 865 | ||
866 | static void __slab_error(const char *function, struct kmem_cache *cachep, | 866 | static void __slab_error(const char *function, struct kmem_cache *cachep, |
867 | char *msg) | 867 | char *msg) |
@@ -2156,7 +2156,7 @@ kmem_cache_create (const char *name, size_t size, size_t align, | |||
2156 | */ | 2156 | */ |
2157 | if (!name || in_interrupt() || (size < BYTES_PER_WORD) || | 2157 | if (!name || in_interrupt() || (size < BYTES_PER_WORD) || |
2158 | size > KMALLOC_MAX_SIZE) { | 2158 | size > KMALLOC_MAX_SIZE) { |
2159 | printk(KERN_ERR "%s: Early error in slab %s\n", __FUNCTION__, | 2159 | printk(KERN_ERR "%s: Early error in slab %s\n", __func__, |
2160 | name); | 2160 | name); |
2161 | BUG(); | 2161 | BUG(); |
2162 | } | 2162 | } |