diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-04-22 11:57:14 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-04-22 12:42:52 -0700 |
commit | 0c54cf767f5a10c8293358a991ba432d8ff0476d (patch) | |
tree | ae6eb1f54e07a30931ba738da5dba3e8c9a381da | |
parent | 6eebd13e76e12748cda19daa340e3953ea1e8ecb (diff) | |
download | f2fs-tools-0c54cf767f5a10c8293358a991ba432d8ff0476d.tar.gz |
libf2fs_io: add unused mactor to avoid build failure
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r-- | lib/libf2fs_io.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/lib/libf2fs_io.c b/lib/libf2fs_io.c index 09a6892..a392255 100644 --- a/lib/libf2fs_io.c +++ b/lib/libf2fs_io.c @@ -501,9 +501,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) |