Details
-
Bug
-
Resolution: Fixed
-
Minor
-
Lustre 2.16.0
-
None
-
3
-
9223372036854775807
Description
Lustre client build failed against kernel 5.19.0-45-generic:
In function 'lsme_unpack_comp', inlined from 'lsm_unpackmd_comp_md_v1' at /work/ihara/tmp/lustre-release/lustre/lov/lov_ea.c:619:10: /work/ihara/tmp/lustre-release/lustre/lov/lov_ea.c:537:34: error: array subscript 'struct lov_stripe_md_entry[0]' is partly outside array bounds of 'struct lov_stripe_md_entry[0]' [-Werror=array-bounds] 537 | lsme->lsme_magic = magic; | ~~~~~~~~~~~~~~~~~^~~~~~~ In file included from include/linux/fs.h:45, from /work/ihara/tmp/lustre-release/libcfs/include/libcfs/linux/linux-misc.h:36, from /work/ihara/tmp/lustre-release/libcfs/include/libcfs/libcfs.h:44, from /work/ihara/tmp/lustre-release/lustre/lov/lov_ea.c:41: In function 'kmalloc', inlined from 'lsme_unpack_comp' at /work/ihara/tmp/lustre-release/lustre/lov/lov_ea.c:536:3, inlined from 'lsm_unpackmd_comp_md_v1' at /work/ihara/tmp/lustre-release/lustre/lov/lov_ea.c:619:10: include/linux/slab.h:600:24: note: object of size 72 allocated by 'kmem_cache_alloc_trace' 600 | return kmem_cache_alloc_trace( | ^~~~~~~~~~~~~~~~~~~~~~~ 601 | kmalloc_caches[kmalloc_type(flags)][index], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 602 | flags, size); | ~~~~~~~~~~~~
CC [M] /work/ihara/tmp/lustre-release/lustre/osc/osc_object.o /work/ihara/tmp/lustre-release/lustre/llite/file.c:6224:27: error: initialization of 'struct posix_acl * (*)(struct inode *, int, bool)' {aka 'struct posix_acl * (*)(struct inode *, int, _Bool)'} from incompatible pointer type 'struct posix_acl * (*)(struct inode *, int)' [-Werror=incompatible-pointer-types] 6224 | .get_acl = ll_get_acl, | ^~~~~~~~~~ /work/ihara/tmp/lustre-release/lustre/llite/file.c:6224:27: note: (near initialization for 'll_file_inode_operations.get_acl')