Whamcloud - gitweb
LU-17193 build: fix gcc-12 compiler warnings 87/52687/2
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 13 Oct 2023 13:59:42 +0000 (08:59 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 25 Oct 2023 18:06:10 +0000 (18:06 +0000)
commit1b0de05f81372eeda9a2a38142553ead7e88a431
tree8ea8aa7601ad06b6b96281eba61abd0d5688275c
parent68116141014250642decfbafcf549ee32f497da6
LU-17193 build: fix gcc-12 compiler warnings

Building on el9.2 hit a couple of new errors in configure, ex:
  ((struct inode_operations *)1)->fileattr_get()
hits:
  error: array subscript 0 is outside array bounds
         of ‘struct inode_operations[0]’

A few instances of QCTL_COPY() should be QCTL_COPY_NO_PNAME()
as the zero-length array to hold the pool name is not
allocated in these cases.

Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I72bda8b46c51dbd42fb42bf569ba29572526acfe
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52687
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: xinliang <xinliang.liu@linaro.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/autoconf/lustre-lnet.m4
lustre/autoconf/lustre-core.m4
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/lmv/lmv_obd.c
lustre/lov/lov_obd.c
lustre/mdc/mdc_request.c