mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-26 19:51:32 +00:00
mkfs.f2fs: split unused parameter
external/f2fs-tools/mkfs/f2fs_format_utils.c:51:28: error: unused parameter 'i' [-Werror,-Wunused-parameter] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
d0e53cc8aa
commit
ae57c32f13
@ -48,10 +48,10 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static int trim_device(int i)
|
||||
{
|
||||
#if defined(FALLOC_FL_PUNCH_HOLE) || defined(BLKDISCARD) || \
|
||||
defined(BLKSECDISCARD)
|
||||
static int trim_device(int i)
|
||||
{
|
||||
unsigned long long range[2];
|
||||
struct stat *stat_buf;
|
||||
struct device_info *dev = c.devices + i;
|
||||
@ -110,13 +110,18 @@ static int trim_device(int i)
|
||||
}
|
||||
#endif
|
||||
free(stat_buf);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
static int trim_device(int UNUSED(i))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WITH_ANDROID
|
||||
static bool is_wiped_device(int i)
|
||||
{
|
||||
#ifdef WITH_ANDROID
|
||||
struct device_info *dev = c.devices + i;
|
||||
int fd = dev->fd;
|
||||
char *buf, *zero_buf;
|
||||
@ -157,9 +162,11 @@ static bool is_wiped_device(int i)
|
||||
MSG(0, "Info: Found all zeros in first %d blocks\n", nblocks);
|
||||
return wiped;
|
||||
#else
|
||||
static bool is_wiped_device(int UNUSED(i))
|
||||
{
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
int f2fs_trim_devices(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user