f2fs-tools: initialize and avoid build warning for android
PATCH 1/1 f2fs-tools: initialize and avoid build warning for android
This patch initialize one variable for android build. In addition, it avoids there-in build warnings.
Signed-off-by Jaegeuk Kim <[email protected]>
--- lib/libf2fs.c | 1 + lib/libf2fs_zoned.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
lib/libf2fs.c +1 -0
@@ -556,6 +556,7 @@ void f2fs_init_configuration(void)for (i =0 ; i <MAX_DEVICES ; i++) {memset (&c.devices[i],0 ,sizeof (struct device_info )); + c.devices[i].fd =-1 ; c.devices[i].sector_size =DEFAULT_SECTOR_SIZE ; c.devices[i].end_blkaddr =-1 ; c.devices[i].zoned_model =F2FS_ZONED_NONE ;
lib/libf2fs_zoned.c +2 -2
@@ -296,13 +296,13 @@ int f2fs_get_zone_blocks(int i)int f2fs_check_zones (int i) { -ERR_MSG ("Zoned block devices are not supported\n" ); +ERR_MSG ("%d: Zoned block devices are not supported\n" , i);return -1 ; }int f2fs_reset_zones (int i) { -ERR_MSG ("Zoned block devices are not supported\n" ); +ERR_MSG ("%d: Zoned block devices are not supported\n" , i);return -1 ; }
Signature · 9 lines
2.8.3 ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi