tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git misc
head: d2aacd36a8e00bc1813841b482e3933acb1ea0b5
commit: cd96fe600cc4924d8d0cc6e3161870219c0d2c12 [187/196] scsi: hisi_sas: Add trace FIFO
debugfs support
config: i386-randconfig-s002-20210211 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git/commit/?id=...
git remote add scsi
https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git
git fetch --no-tags scsi misc
git checkout cd96fe600cc4924d8d0cc6e3161870219c0d2c12
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
> drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:4327: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:4327:35: sparse: expected restricted __le32
[usertype] *[assigned] ptr
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:4327:35: sparse: got unsigned int *
vim +4327 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4319
4320 static int debugfs_fifo_data_v3_hw_show(struct seq_file *s, void *p)
4321 {
4322 struct hisi_sas_phy *phy = s->private;
4323
4324 debugfs_read_fifo_data_v3_hw(phy);
4325
4326 debugfs_show_row_32_v3_hw(s, 0, HISI_SAS_FIFO_DATA_DW_SIZE * 4,
4327 phy->fifo.rd_data);
4328
4329 return 0;
4330 }
4331 DEFINE_SHOW_ATTRIBUTE(debugfs_fifo_data_v3_hw);
4332
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org