]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fs/erofs: Remove an unnecessary assertion
authorYifan Zhao <zhaoyifan@sjtu.edu.cn>
Wed, 26 Jul 2023 04:56:04 +0000 (12:56 +0800)
committerTom Rini <trini@konsulko.com>
Mon, 7 Aug 2023 17:41:44 +0000 (13:41 -0400)
In [1] Sam points out an assertion does not hold true for 32-bit
platforms, which only impacts Large File Support (LFS) API usage
in erofs-utils according to Xiang [2]. We don't think these APIs
are used in u-boot and this restriction could be safely removed.

[1] https://lists.denx.de/pipermail/u-boot/2023-July/524679.html
[2] https://lists.denx.de/pipermail/u-boot/2023-July/524727.html

Fixes: 3a21e92fc255 ("fs/erofs: Introduce new features including ztailpacking, fragments and dedupe")
Signed-off-by: Yifan Zhao <zhaoyifan@sjtu.edu.cn>
Tested-by: Sam Edwards <CFSworks@gmail.com>
fs/erofs/internal.h

index 433a3c6c1eb831f6b3c90e293b0f4107b16cc973..1875f37fcd2e9e30798df0e9dae71c19ca98d3c9 100644 (file)
@@ -105,9 +105,6 @@ struct erofs_sb_info {
        u8 xattr_prefix_count;
 };
 
-/* make sure that any user of the erofs headers has at least 64bit off_t type */
-extern int erofs_assert_largefile[sizeof(off_t) - 8];
-
 static inline erofs_off_t iloc(erofs_nid_t nid)
 {
        return erofs_pos(sbi.meta_blkaddr) + (nid << sbi.islotbits);