summaryrefslogtreecommitdiffstats
path: root/fs/ufs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2016-12-20 10:56:28 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2016-12-22 23:03:41 -0500
commitf698cccbc89e33cda4795a375e47daaa3689485e (patch)
tree1a40248d4c50dc700d9ab3fc151b67629b6453b2 /fs/ufs
parent613cc2b6f272c1a8ad33aefa21cad77af23139f7 (diff)
downloadlinux-f698cccbc89e33cda4795a375e47daaa3689485e.tar.gz
linux-f698cccbc89e33cda4795a375e47daaa3689485e.tar.bz2
linux-f698cccbc89e33cda4795a375e47daaa3689485e.zip
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 <jlayton@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs')
-rw-r--r--fs/ufs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c
index 45ceb94e89e4..1bc0bd6a9848 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)))