The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* drivers/mmc/host/wmt-sdmmc.c:241:39: sparse: sparse: incorrect type in assignment (different base types)
@ 2026-06-01 15:15 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-01 15:15 UTC (permalink / raw)
  To: Mikko Rapeli; +Cc: oe-kbuild-all, linux-kernel, Ulf Hansson

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e43ffb69e0438cddd72aaa30898b4dc446f664f8
commit: 7cd8db0fb0b2bf309163d56fec585c0f9e0964d1 mmc: add COMPILE_TEST to multiple drivers
date:   9 months ago
config: s390-randconfig-r131-20260601 (https://download.01.org/0day-ci/archive/20260601/202606012342.rl7e4RO3-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 9409c07de6378507397ecdb6f05f628f58110112)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260601/202606012342.rl7e4RO3-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
| Fixes: 7cd8db0fb0b2 ("mmc: add COMPILE_TEST to multiple drivers")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606012342.rl7e4RO3-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/mmc/host/wmt-sdmmc.c:241:39: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/mmc/host/wmt-sdmmc.c:241:39: sparse:     expected unsigned int
   drivers/mmc/host/wmt-sdmmc.c:241:39: sparse:     got restricted __be32 [usertype]

vim +241 drivers/mmc/host/wmt-sdmmc.c

3a96dff0f828ae Tony Prisk 2012-11-18  221  
3a96dff0f828ae Tony Prisk 2012-11-18  222  static void wmt_mci_read_response(struct mmc_host *mmc)
3a96dff0f828ae Tony Prisk 2012-11-18  223  {
3a96dff0f828ae Tony Prisk 2012-11-18  224  	struct wmt_mci_priv *priv;
3a96dff0f828ae Tony Prisk 2012-11-18  225  	int idx1, idx2;
3a96dff0f828ae Tony Prisk 2012-11-18  226  	u8 tmp_resp;
3a96dff0f828ae Tony Prisk 2012-11-18  227  	u32 response;
3a96dff0f828ae Tony Prisk 2012-11-18  228  
3a96dff0f828ae Tony Prisk 2012-11-18  229  	priv = mmc_priv(mmc);
3a96dff0f828ae Tony Prisk 2012-11-18  230  
3a96dff0f828ae Tony Prisk 2012-11-18  231  	for (idx1 = 0; idx1 < 4; idx1++) {
3a96dff0f828ae Tony Prisk 2012-11-18  232  		response = 0;
3a96dff0f828ae Tony Prisk 2012-11-18  233  		for (idx2 = 0; idx2 < 4; idx2++) {
3a96dff0f828ae Tony Prisk 2012-11-18  234  			if ((idx1 == 3) && (idx2 == 3))
3a96dff0f828ae Tony Prisk 2012-11-18  235  				tmp_resp = readb(priv->sdmmc_base + SDMMC_RSP);
3a96dff0f828ae Tony Prisk 2012-11-18  236  			else
3a96dff0f828ae Tony Prisk 2012-11-18  237  				tmp_resp = readb(priv->sdmmc_base + SDMMC_RSP +
3a96dff0f828ae Tony Prisk 2012-11-18  238  						 (idx1*4) + idx2 + 1);
3a96dff0f828ae Tony Prisk 2012-11-18  239  			response |= (tmp_resp << (idx2 * 8));
3a96dff0f828ae Tony Prisk 2012-11-18  240  		}
3a96dff0f828ae Tony Prisk 2012-11-18 @241  		priv->cmd->resp[idx1] = cpu_to_be32(response);
3a96dff0f828ae Tony Prisk 2012-11-18  242  	}
3a96dff0f828ae Tony Prisk 2012-11-18  243  }
3a96dff0f828ae Tony Prisk 2012-11-18  244  

:::::: The code at line 241 was first introduced by commit
:::::: 3a96dff0f828ae9dfb43efd49a9b67a74c6dc360 mmc: SD/MMC Host Controller for Wondermedia WM8505/WM8650

:::::: TO: Tony Prisk <linux@prisktech.co.nz>
:::::: CC: Chris Ball <cjb@laptop.org>

--
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:[~2026-06-01 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-01 15:15 drivers/mmc/host/wmt-sdmmc.c:241:39: sparse: sparse: incorrect type in assignment (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