From: Jeff Layton Date: Tue, 20 Dec 2016 15:56:28 +0000 (-0500) Subject: ufs: fix function declaration for ufs_truncate_blocks X-Git-Tag: v4.10-rc1~17^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f698cccbc89e33cda4795a375e47daaa3689485e;p=thirdparty%2Fkernel%2Flinux.git ufs: fix function declaration for ufs_truncate_blocks 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 Signed-off-by: Al Viro --- diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index 45ceb94e89e42..1bc0bd6a9848c 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c @@ -1191,7 +1191,7 @@ out: 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)))