Whamcloud - gitweb
LU-17657 build: gcc 13 stricter enum checking
gcc 13 does not allow mixing of enum and integer
types between function declaration and implementation.
Cleanup a couple of instances where an enum is treated
as an uint32_t / __u32 and treat it as an enum type.
lustre/lov/lov_ea.c: In function 'lsme_unpack_comp':
lustre/lov/lov_ea.c:531:21: error: array subscript
'struct lov_stripe_md_entry[0]' is partly outside array bounds
of 'struct lov_stripe_md_entry[0]' [-Werror=array-bounds=]
531 | lsme->lsme_magic = magic;
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I8e2ef989ecbdebe5e13bcea0fbb210c4a14eb45e
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54468
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>