From: kernel test robot <lkp@intel.com>
To: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Felix Fietkau <nbd@nbd.name>
Subject: drivers/net/wireless/mediatek/mt76/npu.c:487:15: sparse: sparse: incorrect type in initializer (different base types)
Date: Sun, 06 Dec 2026 12:28:33 +0100 [thread overview]
Message-ID: <20261205065756.MAVmJQWB-lkp@intel.com> (raw)
Hi Lorenzo,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 28a23309c8e40d651faf4cc3cc9b71458a11b987
commit: 377aa17d2aedc98d1c3bbe7e49b22a0c76308b0e wifi: mt76: mt7996: Add NPU offload support to MT7996 driver
date: 1 year ago
config: arm-randconfig-r2310-20261205 (https://download.01.org/0day-ci/archive/20261205/20261205065756.MAVmJQWB-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project c99f32ca9e5361a2006927ca6839a4eb93832d0e)
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261205/20261205065756.MAVmJQWB-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: 377aa17d2aed ("wifi: mt76: mt7996: Add NPU offload support to MT7996 driver")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261205065756.MAVmJQWB-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/net/wireless/mediatek/mt76/npu.c:487:15: sparse: sparse: incorrect type in initializer (different base types) @@ expected void *__tmp @@ got struct airoha_npu * @@
drivers/net/wireless/mediatek/mt76/npu.c:487:15: sparse: expected void *__tmp
drivers/net/wireless/mediatek/mt76/npu.c:487:15: sparse: got struct airoha_npu *
>> drivers/net/wireless/mediatek/mt76/npu.c:492:19: sparse: sparse: incorrect type in initializer (different base types) @@ expected void *__tmp @@ got struct airoha_ppe_dev * @@
drivers/net/wireless/mediatek/mt76/npu.c:492:19: sparse: expected void *__tmp
drivers/net/wireless/mediatek/mt76/npu.c:492:19: sparse: got struct airoha_ppe_dev *
vim +487 drivers/net/wireless/mediatek/mt76/npu.c
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 479
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 480 void mt76_npu_deinit(struct mt76_dev *dev)
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 481 {
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 482 struct airoha_ppe_dev *ppe_dev;
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 483 struct airoha_npu *npu;
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 484
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 485 mutex_lock(&dev->mutex);
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 486
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 @487 npu = rcu_replace_pointer(dev->mmio.npu, NULL,
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 488 lockdep_is_held(&dev->mutex));
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 489 if (npu)
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 490 airoha_npu_put(npu);
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 491
7fb554b1b623c7d Lorenzo Bianconi 2025-10-17 @492 ppe_dev = rcu_replace_pointer(dev->mmio.ppe_dev, NULL,
:::::: The code at line 487 was first introduced by commit
:::::: 7fb554b1b623c7da845521604bd05fa9570d07bc wifi: mt76: Introduce the NPU generic layer
:::::: TO: Lorenzo Bianconi <lorenzo@kernel.org>
:::::: CC: Felix Fietkau <nbd@nbd.name>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-12-06 11:28 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=20261205065756.MAVmJQWB-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lorenzo@kernel.org \
--cc=nbd@nbd.name \
--cc=oe-kbuild-all@lists.linux.dev \
/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®