Skip to contentSkip to conversation

ufs: fix function declaration for ufs_truncate_blocks

PATCH New Jeff Layton 1 participant 1 message Dec 20, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 fs/ufs/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ufs/inode.c +1 -1
index 45ceb94e89e4..1bc0bd6a9848 100644
@@ -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)))
Signature · 1 line
2.7.4