erofs-utils: lib: rearrange struct erofs_configure
authorHongzhen Luo <hongzhen@linux.alibaba.com>
Mon, 11 Nov 2024 09:57:15 +0000 (17:57 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 12 Nov 2024 02:09:48 +0000 (10:09 +0800)
commitbc6a5d3d85ad255b3ca4d939437727989ad7b9a9
tree84f99cfddc33a8c0b7bd849763445152b2849021
parent539ad7d06bf32ae0ec0c8b83900330058d92f4a7
erofs-utils: lib: rearrange struct erofs_configure

Move the fields controlled by the NDEBUG macro to the end
to maintain a consistent layout for preceding variables.

It addresses cases where a third-party application does not define
NDEBUG while erofs-utils does.  Ideally, third-party applications
should use the same macros as erofs-utils to get a unique
`struct erofs_configure`. However, since NDEBUG enables unnecessary
assertions, restructuring the layout resolves such inconsistencies.

Fixes: ad6c80dc168d ("erofs-utils: lib: add erofs_get_configure()")
Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Link: https://lore.kernel.org/r/20241111095715.3814956-1-hongzhen@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
include/erofs/config.h