libf2fs_io: add unused mactor to avoid build failure

commit 0c54cf767f5a10c8293358a991ba432d8ff0476d
category: bugfix
issue: #I6VAS0
CVE: NA

Signed-off-by: DongSenhao <dongsenhao2@huawei.com>
---------------------------------------

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: dongsenhao <dongsenhao2@huawei.com>
This commit is contained in:
Jaegeuk Kim 2022-04-22 11:57:14 -07:00 committed by dongsenhao
parent 6303983f84
commit 70c040387e

View File

@ -503,9 +503,22 @@ static int sparse_merge_blocks(uint64_t start, uint64_t num, int zero)
F2FS_BLKSIZE * num, start);
}
#else
static int sparse_read_blk(__u64 block, int count, void *buf) { return 0; }
static int sparse_write_blk(__u64 block, int count, const void *buf) { return 0; }
static int sparse_write_zeroed_blk(__u64 block, int count) { return 0; }
static int sparse_read_blk(__u64 UNUSED(block),
int UNUSED(count), void *UNUSED(buf))
{
return 0;
}
static int sparse_write_blk(__u64 UNUSED(block),
int UNUSED(count), const void *UNUSED(buf))
{
return 0;
}
static int sparse_write_zeroed_blk(__u64 UNUSED(block), int UNUSED(count))
{
return 0;
}
#endif
int dev_read(void *buf, __u64 offset, size_t len)