Whamcloud - gitweb
LU-17657 build: gcc 13 stricter enum checking 68/54468/6
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 26 Apr 2024 15:25:19 +0000 (22:25 +0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 May 2024 18:24:02 +0000 (18:24 +0000)
commit0d7d9aedaf4f85d97cf82888b2a5beab9dcd65c3
treed7a8863f0f979b27e98cb3fd43463cc7d93b761d
parent6d26935736a84034528fd73e8e111db865a36c42
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>
lustre/include/lustre/lustreapi.h
lustre/include/lustre_net.h
lustre/lov/lov_ea.c