summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-01-05 09:41:20 +0000
committerJaegeuk Kim <jaegeuk@kernel.org>2018-02-07 18:05:48 -0800
commitb78e9302e2e358d45ea4377bf2c20d045f1c3b8a (patch)
tree404725fcfd7ef197507389d2b4cf0fde209d7e45
parent62438ba87b798597d73aa86d0181aaafd11cd067 (diff)
f2fs: make local functions static
Fixes the following sparse warnings: fs/f2fs/segment.c:887:6: warning: symbol '__check_sit_bitmap' was not declared. Should it be static? fs/f2fs/segment.c:1327:6: warning: symbol 'f2fs_wait_discard_bio' was not declared. Should it be static? fs/f2fs/super.c:1661:5: warning: symbol 'f2fs_get_projid' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/segment.c4
-rw-r--r--fs/f2fs/super.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index 96b01c7bea42..116e50470360 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -965,7 +965,7 @@ static int __blkdev_issue_discard(struct block_device *bdev, sector_t sector,
return 0;
}
-void __check_sit_bitmap(struct f2fs_sb_info *sbi,
+static void __check_sit_bitmap(struct f2fs_sb_info *sbi,
block_t start, block_t end)
{
#ifdef CONFIG_F2FS_CHECK_FS
@@ -1404,7 +1404,7 @@ static void __wait_all_discard_cmd(struct f2fs_sb_info *sbi,
}
/* This should be covered by global mutex, &sit_i->sentry_lock */
-void f2fs_wait_discard_bio(struct f2fs_sb_info *sbi, block_t blkaddr)
+static void f2fs_wait_discard_bio(struct f2fs_sb_info *sbi, block_t blkaddr)
{
struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info;
struct discard_cmd *dc;
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 9ec270a961e2..ec13397b635c 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1693,7 +1693,7 @@ void f2fs_quota_off_umount(struct super_block *sb)
}
#if 0
-int f2fs_get_projid(struct inode *inode, kprojid_t *projid)
+static int f2fs_get_projid(struct inode *inode, kprojid_t *projid)
{
*projid = F2FS_I(inode)->i_projid;
return 0;