mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-26 19:51:32 +00:00
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:
parent
6303983f84
commit
70c040387e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user