mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [bvanassche:scsi-sysfs 49/53] drivers/scsi/smartpqi/smartpqi_init.c:6961:10: error: 'struct scsi_host_template' has no member named 'sdev_attr_groups'; did you mean 'shost_attr_groups'?
@ 2021-10-01 10:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-01 10:31 UTC (permalink / raw)
  To: Bart Van Assche; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3593 bytes --]

tree:   https://github.com/bvanassche/linux scsi-sysfs
head:   5fd80e4ce1f3a99c29cab3f6cb1536c7c68b21aa
commit: e2ca5ca7fd7ea50283bacab34d5d265b2464a9cf [49/53] smartpqi
config: ia64-randconfig-r013-20211001 (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.0
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
        # https://github.com/bvanassche/linux/commit/e2ca5ca7fd7ea50283bacab34d5d265b2464a9cf
        git remote add bvanassche https://github.com/bvanassche/linux
        git fetch --no-tags bvanassche scsi-sysfs
        git checkout e2ca5ca7fd7ea50283bacab34d5d265b2464a9cf
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/scsi/smartpqi/

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

All errors (new ones prefixed by >>):

   In file included from arch/ia64/include/asm/pgtable.h:153,
                    from include/linux/pgtable.h:6,
                    from arch/ia64/include/asm/uaccess.h:40,
                    from include/linux/uaccess.h:11,
                    from arch/ia64/include/asm/sections.h:11,
                    from include/linux/interrupt.h:21,
                    from include/linux/pci.h:38,
                    from drivers/scsi/smartpqi/smartpqi_init.c:14:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:127:48: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     127 |         unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                                ^~~~~~~
   drivers/scsi/smartpqi/smartpqi_init.c: At top level:
>> drivers/scsi/smartpqi/smartpqi_init.c:6961:10: error: 'struct scsi_host_template' has no member named 'sdev_attr_groups'; did you mean 'shost_attr_groups'?
    6961 |         .sdev_attr_groups = pqi_sdev_attr_groups,
         |          ^~~~~~~~~~~~~~~~
         |          shost_attr_groups
>> drivers/scsi/smartpqi/smartpqi_init.c:6961:29: error: initialization of 'int (*)(struct Scsi_Host *, unsigned int)' from incompatible pointer type 'const struct attribute_group **' [-Werror=incompatible-pointer-types]
    6961 |         .sdev_attr_groups = pqi_sdev_attr_groups,
         |                             ^~~~~~~~~~~~~~~~~~~~
   drivers/scsi/smartpqi/smartpqi_init.c:6961:29: note: (near initialization for 'pqi_driver_template.mq_poll')
   cc1: some warnings being treated as errors


vim +6961 drivers/scsi/smartpqi/smartpqi_init.c

  6946	
  6947	static struct scsi_host_template pqi_driver_template = {
  6948		.module = THIS_MODULE,
  6949		.name = DRIVER_NAME_SHORT,
  6950		.proc_name = DRIVER_NAME_SHORT,
  6951		.queuecommand = pqi_scsi_queue_command,
  6952		.scan_start = pqi_scan_start,
  6953		.scan_finished = pqi_scan_finished,
  6954		.this_id = -1,
  6955		.eh_device_reset_handler = pqi_eh_device_reset_handler,
  6956		.ioctl = pqi_ioctl,
  6957		.slave_alloc = pqi_slave_alloc,
  6958		.slave_configure = pqi_slave_configure,
  6959		.slave_destroy = pqi_slave_destroy,
  6960		.map_queues = pqi_map_queues,
> 6961		.sdev_attr_groups = pqi_sdev_attr_groups,
  6962		.shost_attr_groups = pqi_shost_attr_groups,
  6963	};
  6964	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39968 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-01 10:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-01 10:31 [bvanassche:scsi-sysfs 49/53] drivers/scsi/smartpqi/smartpqi_init.c:6961:10: error: 'struct scsi_host_template' has no member named 'sdev_attr_groups'; did you mean 'shost_attr_groups'? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®