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: Thu, 17 Sep 2026 16:18:26 +0800 [thread overview]
Message-ID: <202609171639.ppn4Bdj8-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9b87fdc9af2fbfcdb5c24a64139685ef80f6573f
commit: 7cd8db0fb0b2bf309163d56fec585c0f9e0964d1 mmc: add COMPILE_TEST to multiple drivers
date: 1 year ago
config: riscv-randconfig-r1309-20260917 (https://download.01.org/0day-ci/archive/20260917/202609171639.ppn4Bdj8-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 148ee2b266b73a49f1f31d0bd17d4818b91bee9f)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260917/202609171639.ppn4Bdj8-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/202609171639.ppn4Bdj8-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
WARNING: invalid argument to '-march': '_zacas_zabha'
>> 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
next reply other threads:[~2026-09-17 8:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 8:18 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-06-01 15:15 kernel test robot
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=202609171639.ppn4Bdj8-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
all inboxes | Powered by JetHome®