lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 15 Jun 2021 21:53:31 -0700 From: Eric Biggers <ebiggers@...nel.org> To: linux-ext4@...r.kernel.org Subject: [PATCH 3/6] mke2fs: use ext2fs_get_device_size2() on all platforms From: Eric Biggers <ebiggers@...gle.com> Since commit e8c858047be6 ("libext2fs: fix build issue for on Windows/Cygwin systems"), ext2fs_get_device_size2() is available in Windows builds of libext2fs. So there is no need for mke2fs to call ext2fs_get_device_size() instead. This fixes a -Wincompatible-pointer-types warning because ext2fs_get_device_size() was being passed a 'blk64_t *', but it expected a 'blk_t *'. Signed-off-by: Eric Biggers <ebiggers@...gle.com> --- misc/mke2fs.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/misc/mke2fs.c b/misc/mke2fs.c index afbcf486..d5ab334e 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -1989,15 +1989,9 @@ profile_error: dev_size = fs_blocks_count; retval = 0; } else -#ifndef _WIN32 retval = ext2fs_get_device_size2(device_name, EXT2_BLOCK_SIZE(&fs_param), &dev_size); -#else - retval = ext2fs_get_device_size(device_name, - EXT2_BLOCK_SIZE(&fs_param), - &dev_size); -#endif if (retval && (retval != EXT2_ET_UNIMPLEMENTED)) { com_err(program_name, retval, "%s", _("while trying to determine filesystem size")); -- 2.32.0.272.g935e593368-goog
Powered by blists - more mailing lists