[bvanassche:scsi-for-next 1/2] drivers/ata/ata_piix.c:1098:2: error: incompatible types when initializing type 'const struct attribute_group *' using type 'const struct attribute_group'

From: kernel test robot
Date: Fri Oct 01 2021 - 08:51:54 EST


tree: https://github.com/bvanassche/linux scsi-for-next
head: 3d4f1af1fe85f0f2cc435ea177d25f9bad454965
commit: 983ecfd3c8e1418e0bd073bac176b8065ec619fd [1/2] scsi: Register SCSI host sysfs attributes earlier
config: x86_64-randconfig-r036-20211001 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# 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
make W=1 ARCH=x86_64

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/ata/ata_piix.c:1098:2: error: incompatible types when initializing type 'const struct attribute_group *' using type 'const struct attribute_group'
1098 | piix_sidpr_shost_attr_group,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +1098 drivers/ata/ata_piix.c

1096
1097 static const struct attribute_group *piix_sidpr_shost_attr_groups[] = {
> 1098 piix_sidpr_shost_attr_group,
1099 NULL
1100 };
1101

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

Attachment: .config.gz
Description: application/gzip