Whamcloud - gitweb
LU-17657 build: gcc 13 stricter enum checking 68/54468/4
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 26 Apr 2024 15:25:19 +0000 (22:25 +0700)
committerShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 26 Apr 2024 15:54:56 +0000 (22:54 +0700)
commit617e7a25b12e0cdb865188414b6d1206eedec69a
tree74e324ac298edd170fa1439ccedadde1fb10bf1e
parent2333c8e3ae934ba5b6c11c571e507775ecc417c6
LU-17657 build: gcc 13 stricter enum checking

gcc 13 does not allow mixing of emum 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
lustre/include/lustre/lustreapi.h
lustre/include/lustre_net.h
lustre/lov/lov_ea.c