Skip to content

Commit

Permalink
ufs: fix function declaration for ufs_truncate_blocks
Browse files Browse the repository at this point in the history
sparse says:

    fs/ufs/inode.c:1195:6: warning: symbol 'ufs_truncate_blocks' was not declared. Should it be static?

Note that the forward declaration in the file is already marked static.

Signed-off-by: Jeff Layton <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
jtlayton authored and Al Viro committed Dec 23, 2016
1 parent 613cc2b commit f698ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ufs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ static int ufs_truncate(struct inode *inode, loff_t size)
return err;
}

void ufs_truncate_blocks(struct inode *inode)
static void ufs_truncate_blocks(struct inode *inode)
{
if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
S_ISLNK(inode->i_mode)))
Expand Down

0 comments on commit f698ccc

Please sign in to comment.