[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1482249388-21303-1-git-send-email-jlayton@redhat.com>
Date: Tue, 20 Dec 2016 10:56:28 -0500
From: Jeff Layton <jlayton@...hat.com>
To: dushistov@...l.ru
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] 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@...hat.com>
---
fs/ufs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 @@ 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)))
--
2.7.4
Powered by blists - more mailing lists