Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1545221 > unrolled thread
| Started by | Jeff Layton <jlayton@redhat.com> |
|---|---|
| First post | 2016-12-20 17:00 +0100 |
| Last post | 2016-12-20 17:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] ufs: fix function declaration for ufs_truncate_blocks Jeff Layton <jlayton@redhat.com> - 2016-12-20 17:00 +0100
| From | Jeff Layton <jlayton@redhat.com> |
|---|---|
| Date | 2016-12-20 17:00 +0100 |
| Subject | [PATCH] ufs: fix function declaration for ufs_truncate_blocks |
| Message-ID | <sQuZz-7tt-9@gated-at.bofh.it> |
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>
---
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
Back to top | Article view | linux.kernel
csiph-web