From: kernel test robot <lkp@intel.com>
To: Mikko Rapeli <mikko.rapeli@linaro.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Ulf Hansson <ulf.hansson@linaro.org>
Subject: drivers/mmc/host/wmt-sdmmc.c:241:39: sparse: sparse: incorrect type in assignment (different base types)
Date: Mon, 01 Jun 2026 23:15:18 +0800 [thread overview]
Message-ID: <202606012342.rl7e4RO3-lkp@intel.com> (raw)
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
reply other threads:[~2026-06-01 15:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202606012342.rl7e4RO3-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mikko.rapeli@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox