Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 647763fa authored by Wei Yongjun's avatar Wei Yongjun Committed by Jaegeuk Kim
Browse files

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 3f81bf52
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -966,7 +966,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
@@ -1405,7 +1405,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;
+3 −1
Original line number Diff line number Diff line
@@ -1731,11 +1731,13 @@ void f2fs_quota_off_umount(struct super_block *sb)
		f2fs_quota_off(sb, type);
}

int f2fs_get_projid(struct inode *inode, kprojid_t *projid)
#if 0	/* not support */
static int f2fs_get_projid(struct inode *inode, kprojid_t *projid)
{
	*projid = F2FS_I(inode)->i_projid;
	return 0;
}
#endif

static const struct dquot_operations f2fs_quota_operations = {
	.get_reserved_space = f2fs_get_reserved_space,