drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:4554:25: sparse: sparse: incorrect type in argument 4 (different base types)
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: bdd609656ff5573db9ba1d26496a528bdd297cf2 commit: 4ca7fe99fc8485fcd04b367f37dc7a48f1355419 [4284/11093] scsi: hisi_sas: Use macro instead of magic number config: loongarch-randconfig-r123-20250515 (https://download.01.org/0day-ci/archive/20250515/[email protected]/config) compiler: loongarch64-linux-gcc (GCC) 12.4.0 reproduce: (https://download.01.org/0day-ci/archive/20250515/[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 >>)
>> drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:4554:25: 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:4554:25: sparse: expected restricted __le32 [usertype] *[assigned] ptr
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:4554:25: sparse: got unsigned int *
vim +4554 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4545
4546 static int debugfs_fifo_data_v3_hw_show(struct seq_file *s, void *p)
4547 {
4548 struct hisi_sas_phy *phy = s->private;
4549
4550 debugfs_read_fifo_data_v3_hw(phy);
4551
4552 debugfs_show_row_32_v3_hw(s, 0,
4553 HISI_SAS_FIFO_DATA_DW_SIZE * HISI_SAS_REG_MEM_SIZE,
> 4554 phy->fifo.rd_data);
4555
4556 return 0;
4557 }
4558 DEFINE_SHOW_ATTRIBUTE(debugfs_fifo_data_v3_hw);
4559
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki