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]
Message-ID: <202307260823.whMNpZ1C-lkp@intel.com>
Date:   Wed, 26 Jul 2023 08:47:16 +0800
From:   kernel test robot <lkp@...el.com>
To:     Sunil V L <sunilvl@...tanamicro.com>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        Palmer Dabbelt <palmer@...osinc.com>,
        Andrew Jones <ajones@...tanamicro.com>,
        Conor Dooley <conor.dooley@...rochip.com>
Subject: drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:4567:35: sparse: sparse:
 incorrect type in argument 4 (different base types)

Hi Sunil,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   18b44bc5a67275641fb26f2c54ba7eef80ac5950
commit: a91a9ffbd3a55a0ae1bb75e2b6e85b2a03f64e8f RISC-V: Add support to build the ACPI core
date:   8 weeks ago
config: riscv-randconfig-r072-20230725 (https://download.01.org/0day-ci/archive/20230726/202307260823.whMNpZ1C-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230726/202307260823.whMNpZ1C-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307260823.whMNpZ1C-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   WARNING: invalid argument to '-march': '_zihintpause'
   drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:2218:43: sparse: sparse: restricted __le32 degrades to integer
   drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:2219:46: sparse: sparse: restricted __le32 degrades to integer
   drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:2235:34: sparse: sparse: restricted __le32 degrades to integer
>> drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:4567:35: sparse: sparse: incorrect type in argument 4 (different base types) @@     expected restricted __le32 [usertype] *[assigned] ptr @@     got unsigned int * @@
   drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:4567:35: sparse:     expected restricted __le32 [usertype] *[assigned] ptr
   drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:4567:35: sparse:     got unsigned int *

vim +4567 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c

cd96fe600cc492 Luo Jiaxing 2021-01-26  4559  
cd96fe600cc492 Luo Jiaxing 2021-01-26  4560  static int debugfs_fifo_data_v3_hw_show(struct seq_file *s, void *p)
cd96fe600cc492 Luo Jiaxing 2021-01-26  4561  {
cd96fe600cc492 Luo Jiaxing 2021-01-26  4562  	struct hisi_sas_phy *phy = s->private;
cd96fe600cc492 Luo Jiaxing 2021-01-26  4563  
cd96fe600cc492 Luo Jiaxing 2021-01-26  4564  	debugfs_read_fifo_data_v3_hw(phy);
cd96fe600cc492 Luo Jiaxing 2021-01-26  4565  
cd96fe600cc492 Luo Jiaxing 2021-01-26  4566  	debugfs_show_row_32_v3_hw(s, 0, HISI_SAS_FIFO_DATA_DW_SIZE * 4,
cd96fe600cc492 Luo Jiaxing 2021-01-26 @4567  				  phy->fifo.rd_data);
cd96fe600cc492 Luo Jiaxing 2021-01-26  4568  
cd96fe600cc492 Luo Jiaxing 2021-01-26  4569  	return 0;
cd96fe600cc492 Luo Jiaxing 2021-01-26  4570  }
cd96fe600cc492 Luo Jiaxing 2021-01-26  4571  DEFINE_SHOW_ATTRIBUTE(debugfs_fifo_data_v3_hw);
cd96fe600cc492 Luo Jiaxing 2021-01-26  4572  

:::::: The code at line 4567 was first introduced by commit
:::::: cd96fe600cc4924d8d0cc6e3161870219c0d2c12 scsi: hisi_sas: Add trace FIFO debugfs support

:::::: TO: Luo Jiaxing <luojiaxing@...wei.com>
:::::: CC: Martin K. Petersen <martin.petersen@...cle.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ