diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c
index 45ceb94e89e42a362d633a35d2861e2808910e1a..1bc0bd6a9848cb14064bb09bb810daaac267a4d9 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)))