drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:4567:35: sparse: sparse: incorrect type in argument 4 (different base types)
kernel test robot
build botHi 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/[email protected]/config) compiler: riscv64-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230726/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
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 <[email protected]> :::::: CC: Martin K. Petersen <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki