summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2016-12-20 16:56:28 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2016-12-23 05:03:41 +0100
commitf698cccbc89e33cda4795a375e47daaa3689485e (patch)
tree1a40248d4c50dc700d9ab3fc151b67629b6453b2
parentfs: exec: apply CLOEXEC before changing dumpable task flags (diff)
downloadlinux-f698cccbc89e33cda4795a375e47daaa3689485e.tar.xz
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>
-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)))