mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:4567:35: sparse: sparse: incorrect type in argument 4 (different base types)
@ 2023-07-26  0:47 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-26  0:47 UTC (permalink / raw)
  To: Sunil V L
  Cc: oe-kbuild-all, linux-kernel, Palmer Dabbelt, Andrew Jones, Conor Dooley

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@intel.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@huawei.com>
:::::: CC: Martin K. Petersen <martin.petersen@oracle.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-26  0:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-26  0:47 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:4567:35: sparse: sparse: incorrect type in argument 4 (different base types) kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®