tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5dc4c995db9eb45f6373a956eb1f69460e69e6d4 commit: f920642e406cfa17ebecf03d5b83a02273ec718e scsi: mpt3sas: Revert "scsi: mpt3sas: Fix writel() use" date: 4 months ago config: x86_64-randconfig-s022-20230116 compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f920642e406cfa17ebecf03d5b83a02273ec718e git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout f920642e406cfa17ebecf03d5b83a02273ec718e # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 olddefconfig make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/scsi/mpt3sas/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/scsi/mpt3sas/mpt3sas_base.c:4323:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int val @@ got restricted __le32 [usertype] @@ drivers/scsi/mpt3sas/mpt3sas_base.c:4323:16: sparse: expected unsigned int val drivers/scsi/mpt3sas/mpt3sas_base.c:4323:16: sparse: got restricted __le32 [usertype] drivers/scsi/mpt3sas/mpt3sas_base.c:4345:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int val @@ got restricted __le32 [usertype] @@ drivers/scsi/mpt3sas/mpt3sas_base.c:4345:16: sparse: expected unsigned int val drivers/scsi/mpt3sas/mpt3sas_base.c:4345:16: sparse: got restricted __le32 [usertype] drivers/scsi/mpt3sas/mpt3sas_base.c:4368:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int val @@ got restricted __le32 [usertype] @@ drivers/scsi/mpt3sas/mpt3sas_base.c:4368:16: sparse: expected unsigned int val drivers/scsi/mpt3sas/mpt3sas_base.c:4368:16: sparse: got restricted __le32 [usertype] drivers/scsi/mpt3sas/mpt3sas_base.c:4389:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int val @@ got restricted __le32 [usertype] @@ drivers/scsi/mpt3sas/mpt3sas_base.c:4389:16: sparse: expected unsigned int val drivers/scsi/mpt3sas/mpt3sas_base.c:4389:16: sparse: got restricted __le32 [usertype] drivers/scsi/mpt3sas/mpt3sas_base.c:7066:24: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int val @@ got restricted __le32 [usertype] @@ drivers/scsi/mpt3sas/mpt3sas_base.c:7066:24: sparse: expected unsigned int val drivers/scsi/mpt3sas/mpt3sas_base.c:7066:24: sparse: got restricted __le32 [usertype] vim +4323 drivers/scsi/mpt3sas/mpt3sas_base.c 4302 4303 /** 4304 * _base_put_smid_scsi_io_atomic - send SCSI_IO request to firmware using 4305 * Atomic Request Descriptor 4306 * @ioc: per adapter object 4307 * @smid: system request message index 4308 * @handle: device handle, unused in this function, for function type match 4309 * 4310 * Return: nothing. 4311 */ 4312 static void 4313 _base_put_smid_scsi_io_atomic(struct MPT3SAS_ADAPTER *ioc, u16 smid, 4314 u16 handle) 4315 { 4316 Mpi26AtomicRequestDescriptor_t descriptor; 4317 u32 *request = (u32 *)&descriptor; 4318 4319 descriptor.RequestFlags = MPI2_REQ_DESCRIPT_FLAGS_SCSI_IO; 4320 descriptor.MSIxIndex = _base_set_and_get_msix_index(ioc, smid); 4321 descriptor.SMID = cpu_to_le16(smid); 4322 > 4323 writel(cpu_to_le32(*request), &ioc->chip->AtomicRequestDescriptorPost); 4324 } 4325 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests