[bvanassche:scsi-for-next 1/2] drivers/message/fusion/mptscsih.c:3238:11: error: initializing 'struct attribute **' with an expression of type 'const struct attribute *[13]' discards qualifiers in nested pointer types

From: kernel test robot
Date: Fri Oct 01 2021 - 03:26:14 EST


tree: https://github.com/bvanassche/linux scsi-for-next
head: 3d4f1af1fe85f0f2cc435ea177d25f9bad454965
commit: 983ecfd3c8e1418e0bd073bac176b8065ec619fd [1/2] scsi: Register SCSI host sysfs attributes earlier
config: arm-randconfig-r034-20211001 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 962e503cc8bc411f7523cc393acae8aae425b1c4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/bvanassche/linux/commit/983ecfd3c8e1418e0bd073bac176b8065ec619fd
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-for-next
git checkout 983ecfd3c8e1418e0bd073bac176b8065ec619fd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/message/fusion/mptscsih.c:3238:11: error: initializing 'struct attribute **' with an expression of type 'const struct attribute *[13]' discards qualifiers in nested pointer types [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
.attrs = mptscsih_host_attrs
^~~~~~~~~~~~~~~~~~~
1 error generated.


vim +3238 drivers/message/fusion/mptscsih.c

3236
3237 static const struct attribute_group mptscsih_host_attr_group = {
> 3238 .attrs = mptscsih_host_attrs
3239 };
3240

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip