Browse Source

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>
Jeff Layton 8 years ago
parent
commit
f698cccbc8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/ufs/inode.c

+ 1 - 1
fs/ufs/inode.c

@@ -1191,7 +1191,7 @@ out:
 	return err;
 	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) ||
 	if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
 	      S_ISLNK(inode->i_mode)))
 	      S_ISLNK(inode->i_mode)))