lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sat, 2 Oct 2021 04:00:50 +0800
From:   kernel test robot <lkp@...el.com>
To:     Bart Van Assche <bvanassche@....org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [bvanassche:scsi-sysfs 10/55] drivers/ata/ahci_imx.c:978:2: error:
 field designator 'sdev_attr_groups' does not refer to any field in type
 'struct scsi_host_template'; did you mean 'shost_attr_groups'?

tree:   https://github.com/bvanassche/linux scsi-sysfs
head:   089cf42d12539a64a19a0f55b2d46fdf1176b1b5
commit: 0b1b210f411e326cdfc740dd2b541d74f1a98a69 [10/55] ata
config: hexagon-randconfig-r045-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
        # https://github.com/bvanassche/linux/commit/0b1b210f411e326cdfc740dd2b541d74f1a98a69
        git remote add bvanassche https://github.com/bvanassche/linux
        git fetch --no-tags bvanassche scsi-sysfs
        git checkout 0b1b210f411e326cdfc740dd2b541d74f1a98a69
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/ata/

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

All errors (new ones prefixed by >>):

>> drivers/ata/ahci_imx.c:978:2: error: field designator 'sdev_attr_groups' does not refer to any field in type 'struct scsi_host_template'; did you mean 'shost_attr_groups'?
           AHCI_SHT(DRV_NAME),
           ^
   drivers/ata/ahci.h:392:3: note: expanded from macro 'AHCI_SHT'
           .sdev_attr_groups       = ahci_sdev_attr_groups,                \
            ^
   include/scsi/scsi_host.h:489:33: note: 'shost_attr_groups' declared here
           const struct attribute_group **shost_attr_groups;
                                          ^
   drivers/ata/ahci_imx.c:978:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
           AHCI_SHT(DRV_NAME),
           ^~~~~~~~~~~~~~~~~~
   drivers/ata/ahci.h:392:22: note: expanded from macro 'AHCI_SHT'
           .sdev_attr_groups       = ahci_sdev_attr_groups,                \
                                     ^~~~~~~~~~~~~~~~~~~~~
   drivers/ata/ahci_imx.c:978:2: note: previous initialization is here
           AHCI_SHT(DRV_NAME),
           ^~~~~~~~~~~~~~~~~~
   drivers/ata/ahci.h:391:23: note: expanded from macro 'AHCI_SHT'
           .shost_attr_groups      = ahci_shost_attr_groups,               \
                                     ^~~~~~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.


vim +978 drivers/ata/ahci_imx.c

29e69413666f08 Russell King 2014-06-24  976  
018d5ef2048fca Akinobu Mita 2015-01-29  977  static struct scsi_host_template ahci_platform_sht = {
018d5ef2048fca Akinobu Mita 2015-01-29 @978  	AHCI_SHT(DRV_NAME),
018d5ef2048fca Akinobu Mita 2015-01-29  979  };
018d5ef2048fca Akinobu Mita 2015-01-29  980  

:::::: The code at line 978 was first introduced by commit
:::::: 018d5ef2048fcab339467bcbebccf588c9bd2531 ata: ahci_platform: fix owner module reference mismatch for scsi host

:::::: TO: Akinobu Mita <akinobu.mita@...il.com>
:::::: CC: Tejun Heo <tj@...nel.org>

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

Download attachment ".config.gz" of type "application/gzip" (28390 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ