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>
This commit is contained in:
committed by
Linus Torvalds
parent
d7853d1f89
commit
d40cee245f
@@ -861,7 +861,7 @@ static void cache_estimate(unsigned long gfporder, size_t buffer_size,
|
||||
*left_over = slab_size - nr_objs*buffer_size - mgmt_size;
|
||||
}
|
||||
|
||||
#define slab_error(cachep, msg) __slab_error(__FUNCTION__, cachep, msg)
|
||||
#define slab_error(cachep, msg) __slab_error(__func__, cachep, msg)
|
||||
|
||||
static void __slab_error(const char *function, struct kmem_cache *cachep,
|
||||
char *msg)
|
||||
@@ -2156,7 +2156,7 @@ kmem_cache_create (const char *name, size_t size, size_t align,
|
||||
*/
|
||||
if (!name || in_interrupt() || (size < BYTES_PER_WORD) ||
|
||||
size > KMALLOC_MAX_SIZE) {
|
||||
printk(KERN_ERR "%s: Early error in slab %s\n", __FUNCTION__,
|
||||
printk(KERN_ERR "%s: Early error in slab %s\n", __func__,
|
||||
name);
|
||||
BUG();
|
||||
}
|
||||
|
Reference in New Issue
Block a user