You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
fs: replace 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
530b641278
commit
8e24eea728
+1
-1
@@ -75,7 +75,7 @@ extern unsigned int adfs_map_free(struct super_block *sb);
|
||||
/* Misc */
|
||||
void __adfs_error(struct super_block *sb, const char *function,
|
||||
const char *fmt, ...);
|
||||
#define adfs_error(sb, fmt...) __adfs_error(sb, __FUNCTION__, fmt)
|
||||
#define adfs_error(sb, fmt...) __adfs_error(sb, __func__, fmt)
|
||||
|
||||
/* super.c */
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
/* #define DEBUG */
|
||||
|
||||
#ifdef DEBUG
|
||||
#define DPRINTK(fmt,args...) do { printk(KERN_DEBUG "pid %d: %s: " fmt "\n" , current->pid , __FUNCTION__ , ##args); } while(0)
|
||||
#define DPRINTK(fmt,args...) do { printk(KERN_DEBUG "pid %d: %s: " fmt "\n" , current->pid , __func__ , ##args); } while(0)
|
||||
#else
|
||||
#define DPRINTK(fmt,args...) do {} while(0)
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ static inline struct bfs_inode_info *BFS_I(struct inode *inode)
|
||||
|
||||
|
||||
#define printf(format, args...) \
|
||||
printk(KERN_ERR "BFS-fs: %s(): " format, __FUNCTION__, ## args)
|
||||
printk(KERN_ERR "BFS-fs: %s(): " format, __func__, ## args)
|
||||
|
||||
/* inode.c */
|
||||
extern struct inode *bfs_iget(struct super_block *sb, unsigned long ino);
|
||||
|
||||
+1
-1
@@ -1101,7 +1101,7 @@ grow_buffers(struct block_device *bdev, sector_t block, int size)
|
||||
|
||||
printk(KERN_ERR "%s: requested out-of-range block %llu for "
|
||||
"device %s\n",
|
||||
__FUNCTION__, (unsigned long long)block,
|
||||
__func__, (unsigned long long)block,
|
||||
bdevname(bdev, b));
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
+1
-1
@@ -115,7 +115,7 @@ configfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *pp
|
||||
goto out;
|
||||
}
|
||||
pr_debug("%s: count = %zd, ppos = %lld, buf = %s\n",
|
||||
__FUNCTION__, count, *ppos, buffer->page);
|
||||
__func__, count, *ppos, buffer->page);
|
||||
retval = simple_read_from_buffer(buf, count, ppos, buffer->page,
|
||||
buffer->count);
|
||||
out:
|
||||
|
||||
+1
-1
@@ -92,7 +92,7 @@ static int configfs_fill_super(struct super_block *sb, void *data, int silent)
|
||||
|
||||
root = d_alloc_root(inode);
|
||||
if (!root) {
|
||||
pr_debug("%s: could not get root dentry!\n",__FUNCTION__);
|
||||
pr_debug("%s: could not get root dentry!\n",__func__);
|
||||
iput(inode);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
@@ -210,13 +210,13 @@ static int configfs_get_target_path(struct config_item * item, struct config_ite
|
||||
if (size > PATH_MAX)
|
||||
return -ENAMETOOLONG;
|
||||
|
||||
pr_debug("%s: depth = %d, size = %d\n", __FUNCTION__, depth, size);
|
||||
pr_debug("%s: depth = %d, size = %d\n", __func__, depth, size);
|
||||
|
||||
for (s = path; depth--; s += 3)
|
||||
strcpy(s,"../");
|
||||
|
||||
fill_item_path(target, path, size);
|
||||
pr_debug("%s: path = '%s'\n", __FUNCTION__, path);
|
||||
pr_debug("%s: path = '%s'\n", __func__, path);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
+1
-1
@@ -200,7 +200,7 @@ int __init dlm_lockspace_init(void)
|
||||
|
||||
dlm_kset = kset_create_and_add("dlm", NULL, kernel_kobj);
|
||||
if (!dlm_kset) {
|
||||
printk(KERN_WARNING "%s: can not create kset\n", __FUNCTION__);
|
||||
printk(KERN_WARNING "%s: can not create kset\n", __func__);
|
||||
return -ENOMEM;
|
||||
}
|
||||
return 0;
|
||||
|
||||
+5
-5
@@ -150,12 +150,12 @@ reconnect_path(struct vfsmount *mnt, struct dentry *target_dir)
|
||||
if (IS_ERR(ppd)) {
|
||||
err = PTR_ERR(ppd);
|
||||
dprintk("%s: get_parent of %ld failed, err %d\n",
|
||||
__FUNCTION__, pd->d_inode->i_ino, err);
|
||||
__func__, pd->d_inode->i_ino, err);
|
||||
dput(pd);
|
||||
break;
|
||||
}
|
||||
|
||||
dprintk("%s: find name of %lu in %lu\n", __FUNCTION__,
|
||||
dprintk("%s: find name of %lu in %lu\n", __func__,
|
||||
pd->d_inode->i_ino, ppd->d_inode->i_ino);
|
||||
err = exportfs_get_name(mnt, ppd, nbuf, pd);
|
||||
if (err) {
|
||||
@@ -168,14 +168,14 @@ reconnect_path(struct vfsmount *mnt, struct dentry *target_dir)
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
dprintk("%s: found name: %s\n", __FUNCTION__, nbuf);
|
||||
dprintk("%s: found name: %s\n", __func__, nbuf);
|
||||
mutex_lock(&ppd->d_inode->i_mutex);
|
||||
npd = lookup_one_len(nbuf, ppd, strlen(nbuf));
|
||||
mutex_unlock(&ppd->d_inode->i_mutex);
|
||||
if (IS_ERR(npd)) {
|
||||
err = PTR_ERR(npd);
|
||||
dprintk("%s: lookup failed: %d\n",
|
||||
__FUNCTION__, err);
|
||||
__func__, err);
|
||||
dput(ppd);
|
||||
dput(pd);
|
||||
break;
|
||||
@@ -188,7 +188,7 @@ reconnect_path(struct vfsmount *mnt, struct dentry *target_dir)
|
||||
if (npd == pd)
|
||||
noprogress = 0;
|
||||
else
|
||||
printk("%s: npd != pd\n", __FUNCTION__);
|
||||
printk("%s: npd != pd\n", __func__);
|
||||
dput(npd);
|
||||
dput(ppd);
|
||||
if (IS_ROOT(pd)) {
|
||||
|
||||
+3
-3
@@ -242,7 +242,7 @@ int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus)
|
||||
/* prevent the infinite loop of cluster chain */
|
||||
if (*fclus > limit) {
|
||||
fat_fs_panic(sb, "%s: detected the cluster chain loop"
|
||||
" (i_pos %lld)", __FUNCTION__,
|
||||
" (i_pos %lld)", __func__,
|
||||
MSDOS_I(inode)->i_pos);
|
||||
nr = -EIO;
|
||||
goto out;
|
||||
@@ -253,7 +253,7 @@ int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus)
|
||||
goto out;
|
||||
else if (nr == FAT_ENT_FREE) {
|
||||
fat_fs_panic(sb, "%s: invalid cluster chain"
|
||||
" (i_pos %lld)", __FUNCTION__,
|
||||
" (i_pos %lld)", __func__,
|
||||
MSDOS_I(inode)->i_pos);
|
||||
nr = -EIO;
|
||||
goto out;
|
||||
@@ -286,7 +286,7 @@ static int fat_bmap_cluster(struct inode *inode, int cluster)
|
||||
return ret;
|
||||
else if (ret == FAT_ENT_EOF) {
|
||||
fat_fs_panic(sb, "%s: request beyond EOF (i_pos %lld)",
|
||||
__FUNCTION__, MSDOS_I(inode)->i_pos);
|
||||
__func__, MSDOS_I(inode)->i_pos);
|
||||
return -EIO;
|
||||
}
|
||||
return dclus;
|
||||
|
||||
+1
-1
@@ -546,7 +546,7 @@ int fat_free_clusters(struct inode *inode, int cluster)
|
||||
goto error;
|
||||
} else if (cluster == FAT_ENT_FREE) {
|
||||
fat_fs_panic(sb, "%s: deleting FAT entry beyond EOF",
|
||||
__FUNCTION__);
|
||||
__func__);
|
||||
err = -EIO;
|
||||
goto error;
|
||||
}
|
||||
|
||||
+1
-1
@@ -208,7 +208,7 @@ static int fat_free(struct inode *inode, int skip)
|
||||
} else if (ret == FAT_ENT_FREE) {
|
||||
fat_fs_panic(sb,
|
||||
"%s: invalid cluster chain (i_pos %lld)",
|
||||
__FUNCTION__, MSDOS_I(inode)->i_pos);
|
||||
__func__, MSDOS_I(inode)->i_pos);
|
||||
ret = -EIO;
|
||||
} else if (ret > 0) {
|
||||
err = fat_ent_write(inode, &fatent, FAT_ENT_EOF, wait);
|
||||
|
||||
@@ -212,7 +212,7 @@ int gdlm_sysfs_init(void)
|
||||
{
|
||||
gdlm_kset = kset_create_and_add("lock_dlm", NULL, kernel_kobj);
|
||||
if (!gdlm_kset) {
|
||||
printk(KERN_WARNING "%s: can not create kset\n", __FUNCTION__);
|
||||
printk(KERN_WARNING "%s: can not create kset\n", __func__);
|
||||
return -ENOMEM;
|
||||
}
|
||||
return 0;
|
||||
|
||||
+9
-9
@@ -41,7 +41,7 @@ int gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion,
|
||||
|
||||
#define gfs2_assert_withdraw(sdp, assertion) \
|
||||
((likely(assertion)) ? 0 : gfs2_assert_withdraw_i((sdp), #assertion, \
|
||||
__FUNCTION__, __FILE__, __LINE__))
|
||||
__func__, __FILE__, __LINE__))
|
||||
|
||||
|
||||
int gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion,
|
||||
@@ -49,28 +49,28 @@ int gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion,
|
||||
|
||||
#define gfs2_assert_warn(sdp, assertion) \
|
||||
((likely(assertion)) ? 0 : gfs2_assert_warn_i((sdp), #assertion, \
|
||||
__FUNCTION__, __FILE__, __LINE__))
|
||||
__func__, __FILE__, __LINE__))
|
||||
|
||||
|
||||
int gfs2_consist_i(struct gfs2_sbd *sdp, int cluster_wide,
|
||||
const char *function, char *file, unsigned int line);
|
||||
|
||||
#define gfs2_consist(sdp) \
|
||||
gfs2_consist_i((sdp), 0, __FUNCTION__, __FILE__, __LINE__)
|
||||
gfs2_consist_i((sdp), 0, __func__, __FILE__, __LINE__)
|
||||
|
||||
|
||||
int gfs2_consist_inode_i(struct gfs2_inode *ip, int cluster_wide,
|
||||
const char *function, char *file, unsigned int line);
|
||||
|
||||
#define gfs2_consist_inode(ip) \
|
||||
gfs2_consist_inode_i((ip), 0, __FUNCTION__, __FILE__, __LINE__)
|
||||
gfs2_consist_inode_i((ip), 0, __func__, __FILE__, __LINE__)
|
||||
|
||||
|
||||
int gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd, int cluster_wide,
|
||||
const char *function, char *file, unsigned int line);
|
||||
|
||||
#define gfs2_consist_rgrpd(rgd) \
|
||||
gfs2_consist_rgrpd_i((rgd), 0, __FUNCTION__, __FILE__, __LINE__)
|
||||
gfs2_consist_rgrpd_i((rgd), 0, __func__, __FILE__, __LINE__)
|
||||
|
||||
|
||||
int gfs2_meta_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh,
|
||||
@@ -91,7 +91,7 @@ static inline int gfs2_meta_check_i(struct gfs2_sbd *sdp,
|
||||
}
|
||||
|
||||
#define gfs2_meta_check(sdp, bh) \
|
||||
gfs2_meta_check_i((sdp), (bh), __FUNCTION__, __FILE__, __LINE__)
|
||||
gfs2_meta_check_i((sdp), (bh), __func__, __FILE__, __LINE__)
|
||||
|
||||
|
||||
int gfs2_metatype_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh,
|
||||
@@ -118,7 +118,7 @@ static inline int gfs2_metatype_check_i(struct gfs2_sbd *sdp,
|
||||
}
|
||||
|
||||
#define gfs2_metatype_check(sdp, bh, type) \
|
||||
gfs2_metatype_check_i((sdp), (bh), (type), __FUNCTION__, __FILE__, __LINE__)
|
||||
gfs2_metatype_check_i((sdp), (bh), (type), __func__, __FILE__, __LINE__)
|
||||
|
||||
static inline void gfs2_metatype_set(struct buffer_head *bh, u16 type,
|
||||
u16 format)
|
||||
@@ -134,14 +134,14 @@ int gfs2_io_error_i(struct gfs2_sbd *sdp, const char *function,
|
||||
char *file, unsigned int line);
|
||||
|
||||
#define gfs2_io_error(sdp) \
|
||||
gfs2_io_error_i((sdp), __FUNCTION__, __FILE__, __LINE__);
|
||||
gfs2_io_error_i((sdp), __func__, __FILE__, __LINE__);
|
||||
|
||||
|
||||
int gfs2_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh,
|
||||
const char *function, char *file, unsigned int line);
|
||||
|
||||
#define gfs2_io_error_bh(sdp, bh) \
|
||||
gfs2_io_error_bh_i((sdp), (bh), __FUNCTION__, __FILE__, __LINE__);
|
||||
gfs2_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__);
|
||||
|
||||
|
||||
extern struct kmem_cache *gfs2_glock_cachep;
|
||||
|
||||
+4
-4
@@ -82,28 +82,28 @@
|
||||
do { \
|
||||
printk(JFFS2_ERR_MSG_PREFIX \
|
||||
" (%d) %s: " fmt, task_pid_nr(current), \
|
||||
__FUNCTION__ , ##__VA_ARGS__); \
|
||||
__func__ , ##__VA_ARGS__); \
|
||||
} while(0)
|
||||
|
||||
#define JFFS2_WARNING(fmt, ...) \
|
||||
do { \
|
||||
printk(JFFS2_WARN_MSG_PREFIX \
|
||||
" (%d) %s: " fmt, task_pid_nr(current), \
|
||||
__FUNCTION__ , ##__VA_ARGS__); \
|
||||
__func__ , ##__VA_ARGS__); \
|
||||
} while(0)
|
||||
|
||||
#define JFFS2_NOTICE(fmt, ...) \
|
||||
do { \
|
||||
printk(JFFS2_NOTICE_MSG_PREFIX \
|
||||
" (%d) %s: " fmt, task_pid_nr(current), \
|
||||
__FUNCTION__ , ##__VA_ARGS__); \
|
||||
__func__ , ##__VA_ARGS__); \
|
||||
} while(0)
|
||||
|
||||
#define JFFS2_DEBUG(fmt, ...) \
|
||||
do { \
|
||||
printk(JFFS2_DBG_MSG_PREFIX \
|
||||
" (%d) %s: " fmt, task_pid_nr(current), \
|
||||
__FUNCTION__ , ##__VA_ARGS__); \
|
||||
__func__ , ##__VA_ARGS__); \
|
||||
} while(0)
|
||||
|
||||
/*
|
||||
|
||||
+2
-2
@@ -82,7 +82,7 @@ static int is_xattr_datum_unchecked(struct jffs2_sb_info *c, struct jffs2_xattr_
|
||||
static void unload_xattr_datum(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd)
|
||||
{
|
||||
/* must be called under down_write(xattr_sem) */
|
||||
D1(dbg_xattr("%s: xid=%u, version=%u\n", __FUNCTION__, xd->xid, xd->version));
|
||||
D1(dbg_xattr("%s: xid=%u, version=%u\n", __func__, xd->xid, xd->version));
|
||||
if (xd->xname) {
|
||||
c->xdatum_mem_usage -= (xd->name_len + 1 + xd->value_len);
|
||||
kfree(xd->xname);
|
||||
@@ -1252,7 +1252,7 @@ int jffs2_garbage_collect_xattr_ref(struct jffs2_sb_info *c, struct jffs2_xattr_
|
||||
rc = jffs2_reserve_space_gc(c, totlen, &length, JFFS2_SUMMARY_XREF_SIZE);
|
||||
if (rc) {
|
||||
JFFS2_WARNING("%s: jffs2_reserve_space_gc() = %d, request = %u\n",
|
||||
__FUNCTION__, rc, totlen);
|
||||
__func__, rc, totlen);
|
||||
rc = rc ? rc : -EBADFD;
|
||||
goto out;
|
||||
}
|
||||
|
||||
+1
-1
@@ -573,7 +573,7 @@ again:
|
||||
/* Ensure the resulting lock will get added to granted list */
|
||||
fl->fl_flags |= FL_SLEEP;
|
||||
if (do_vfs_lock(fl) < 0)
|
||||
printk(KERN_WARNING "%s: VFS is out of sync with lock manager!\n", __FUNCTION__);
|
||||
printk(KERN_WARNING "%s: VFS is out of sync with lock manager!\n", __func__);
|
||||
up_read(&host->h_rwsem);
|
||||
fl->fl_flags = fl_flags;
|
||||
status = 0;
|
||||
|
||||
+1
-1
@@ -752,7 +752,7 @@ nlmsvc_grant_blocked(struct nlm_block *block)
|
||||
return;
|
||||
default:
|
||||
printk(KERN_WARNING "lockd: unexpected error %d in %s!\n",
|
||||
-error, __FUNCTION__);
|
||||
-error, __func__);
|
||||
nlmsvc_insert_block(block, 10 * HZ);
|
||||
nlmsvc_release_block(block);
|
||||
return;
|
||||
|
||||
+1
-1
@@ -609,7 +609,7 @@ error_inode:
|
||||
if (corrupt < 0) {
|
||||
fat_fs_panic(new_dir->i_sb,
|
||||
"%s: Filesystem corrupted (i_pos %lld)",
|
||||
__FUNCTION__, sinfo.i_pos);
|
||||
__func__, sinfo.i_pos);
|
||||
}
|
||||
goto out;
|
||||
}
|
||||
|
||||
+2
-2
@@ -2329,10 +2329,10 @@ void __init mnt_init(void)
|
||||
err = sysfs_init();
|
||||
if (err)
|
||||
printk(KERN_WARNING "%s: sysfs_init error: %d\n",
|
||||
__FUNCTION__, err);
|
||||
__func__, err);
|
||||
fs_kobj = kobject_create_and_add("fs", NULL);
|
||||
if (!fs_kobj)
|
||||
printk(KERN_WARNING "%s: kobj create error\n", __FUNCTION__);
|
||||
printk(KERN_WARNING "%s: kobj create error\n", __func__);
|
||||
init_rootfs();
|
||||
init_mount_tree();
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user