Skip to content

Commit fbe5498

Browse files
hharrisontorvalds
authored andcommitted
reiserfs: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: Chris Mason <chris.mason@oracle.com> Cc: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8acc570 commit fbe5498

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎fs/reiserfs/bitmap.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ static void __discard_prealloc(struct reiserfs_transaction_handle *th,
479479
if (ei->i_prealloc_count < 0)
480480
reiserfs_warning(th->t_super,
481481
"zam-4001:%s: inode has negative prealloc blocks count.",
482-
__FUNCTION__);
482+
__func__);
483483
#endif
484484
while (ei->i_prealloc_count > 0) {
485485
reiserfs_free_prealloc_block(th, inode, ei->i_prealloc_block);
@@ -517,7 +517,7 @@ void reiserfs_discard_all_prealloc(struct reiserfs_transaction_handle *th)
517517
if (!ei->i_prealloc_count) {
518518
reiserfs_warning(th->t_super,
519519
"zam-4001:%s: inode is in prealloc list but has no preallocated blocks.",
520-
__FUNCTION__);
520+
__func__);
521521
}
522522
#endif
523523
__discard_prealloc(th, ei);
@@ -632,7 +632,7 @@ int reiserfs_parse_alloc_options(struct super_block *s, char *options)
632632
}
633633

634634
reiserfs_warning(s, "zam-4001: %s : unknown option - %s",
635-
__FUNCTION__, this_char);
635+
__func__, this_char);
636636
return 1;
637637
}
638638

@@ -1254,7 +1254,7 @@ struct buffer_head *reiserfs_read_bitmap_block(struct super_block *sb,
12541254
bh = sb_bread(sb, block);
12551255
if (bh == NULL)
12561256
reiserfs_warning(sb, "sh-2029: %s: bitmap block (#%u) "
1257-
"reading failed", __FUNCTION__, block);
1257+
"reading failed", __func__, block);
12581258
else {
12591259
if (buffer_locked(bh)) {
12601260
PROC_INFO_INC(sb, scan_bitmap.wait);

‎fs/reiserfs/journal.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ static int flush_commit_list(struct super_block *s,
11871187

11881188
if (retval)
11891189
reiserfs_abort(s, retval, "Journal write error in %s",
1190-
__FUNCTION__);
1190+
__func__);
11911191
put_fs_excl();
11921192
return retval;
11931193
}
@@ -1534,7 +1534,7 @@ static int flush_journal_list(struct super_block *s,
15341534
reiserfs_warning(s,
15351535
"clm-2082: Unable to flush buffer %llu in %s",
15361536
(unsigned long long)saved_bh->
1537-
b_blocknr, __FUNCTION__);
1537+
b_blocknr, __func__);
15381538
}
15391539
free_cnode:
15401540
last = cn;
@@ -1586,7 +1586,7 @@ static int flush_journal_list(struct super_block *s,
15861586
if (err)
15871587
reiserfs_abort(s, -EIO,
15881588
"Write error while pushing transaction to disk in %s",
1589-
__FUNCTION__);
1589+
__func__);
15901590
flush_older_and_return:
15911591

15921592
/* before we can update the journal header block, we _must_ flush all
@@ -1616,7 +1616,7 @@ static int flush_journal_list(struct super_block *s,
16161616
if (err)
16171617
reiserfs_abort(s, -EIO,
16181618
"Write error while updating journal header in %s",
1619-
__FUNCTION__);
1619+
__func__);
16201620
}
16211621
remove_all_from_journal_list(s, jl, 0);
16221622
list_del_init(&jl->j_list);

‎fs/reiserfs/namei.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ static int reiserfs_find_entry(struct inode *dir, const char *name, int namelen,
301301
path_to_entry, de);
302302
if (retval == IO_ERROR) {
303303
reiserfs_warning(dir->i_sb, "zam-7001: io error in %s",
304-
__FUNCTION__);
304+
__func__);
305305
return IO_ERROR;
306306
}
307307

@@ -496,7 +496,7 @@ static int reiserfs_add_entry(struct reiserfs_transaction_handle *th,
496496
reiserfs_warning(dir->i_sb,
497497
"zam-7002:%s: \"reiserfs_find_entry\" "
498498
"has returned unexpected value (%d)",
499-
__FUNCTION__, retval);
499+
__func__, retval);
500500
}
501501

502502
return -EEXIST;
@@ -907,7 +907,7 @@ static int reiserfs_rmdir(struct inode *dir, struct dentry *dentry)
907907

908908
if (inode->i_nlink != 2 && inode->i_nlink != 1)
909909
reiserfs_warning(inode->i_sb, "%s: empty directory has nlink "
910-
"!= 2 (%d)", __FUNCTION__, inode->i_nlink);
910+
"!= 2 (%d)", __func__, inode->i_nlink);
911911

912912
clear_nlink(inode);
913913
inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME_SEC;
@@ -984,7 +984,7 @@ static int reiserfs_unlink(struct inode *dir, struct dentry *dentry)
984984

985985
if (!inode->i_nlink) {
986986
reiserfs_warning(inode->i_sb, "%s: deleting nonexistent file "
987-
"(%s:%lu), %d", __FUNCTION__,
987+
"(%s:%lu), %d", __func__,
988988
reiserfs_bdevname(inode->i_sb), inode->i_ino,
989989
inode->i_nlink);
990990
inode->i_nlink = 1;

‎fs/reiserfs/objectid.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ __u32 reiserfs_get_unused_objectid(struct reiserfs_transaction_handle *th)
6161
/* comment needed -Hans */
6262
unused_objectid = le32_to_cpu(map[1]);
6363
if (unused_objectid == U32_MAX) {
64-
reiserfs_warning(s, "%s: no more object ids", __FUNCTION__);
64+
reiserfs_warning(s, "%s: no more object ids", __func__);
6565
reiserfs_restore_prepared_buffer(s, SB_BUFFER_WITH_SB(s));
6666
return 0;
6767
}

0 commit comments

Comments
 (0)