From: kernel test robot <lkp@intel.com>
To: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Philipp Zabel <p.zabel@pengutronix.de>
Subject: drivers/reset/core.c:870:25: sparse: sparse: incorrect type in initializer (different base types)
Date: Sun, 06 Dec 2026 12:27:47 +0100 [thread overview]
Message-ID: <20261204142756.NAoLhgsY-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 007722b8211f7b34fdf21b1e6a9c32497633ea29
commit: 78ebbff6d1a05ffc2062d90231b4720618a57147 reset: handle removing supplier before consumers
date: 9 months ago
config: sparc-randconfig-r2300-20261203 (https://download.01.org/0day-ci/archive/20261204/20261204142756.NAoLhgsY-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 14.4.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204142756.NAoLhgsY-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: 78ebbff6d1a0 ("reset: handle removing supplier before consumers")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261204142756.NAoLhgsY-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/reset/core.c:870:25: sparse: sparse: incorrect type in initializer (different base types) @@ expected void *__tmp @@ got struct reset_controller_dev * @@
drivers/reset/core.c:870:25: sparse: expected void *__tmp
drivers/reset/core.c:870:25: sparse: got struct reset_controller_dev *
vim +870 drivers/reset/core.c
860
861 static void __reset_control_release(struct kref *kref)
862 {
863 struct reset_control *rstc = container_of(kref, struct reset_control,
864 refcnt);
865 struct reset_controller_dev *rcdev;
866
867 lockdep_assert_held(&reset_list_mutex);
868
869 scoped_guard(srcu, &rstc->srcu) {
> 870 rcdev = rcu_replace_pointer(rstc->rcdev, NULL, true);
871 if (rcdev)
872 reset_controller_remove(rcdev, rstc);
873 }
874
875 synchronize_srcu(&rstc->srcu);
876 cleanup_srcu_struct(&rstc->srcu);
877 kfree(rstc);
878 }
879
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-12-06 11:27 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=20261204142756.NAoLhgsY-lkp@intel.com \
--to=lkp@intel.com \
--cc=bartosz.golaszewski@oss.qualcomm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=p.zabel@pengutronix.de \
/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®