* fs/filesystems.c:250:15: sparse: sparse: incorrect type in initializer (different base types)
@ 2026-12-06 11:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-12-06 11:28 UTC (permalink / raw)
To: Mateusz Guzik; +Cc: oe-kbuild-all, linux-kernel, Christian Brauner
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c3500c5ef648855b0063e763d3847688fe68711d
commit: 36b3306779ea58f994a614b3663a196707a66ce2 fs: cache the string generated by reading /proc/filesystems
date: 7 months ago
config: sparc-randconfig-r2300-20261203 (https://download.01.org/0day-ci/archive/20261205/20261205021350.CpVtXk0E-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/20261205/20261205021350.CpVtXk0E-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: 36b3306779ea ("fs: cache the string generated by reading /proc/filesystems")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261205021350.CpVtXk0E-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> fs/filesystems.c:250:15: sparse: sparse: incorrect type in initializer (different base types) @@ expected void *__tmp @@ got struct file_systems_string * @@
fs/filesystems.c:250:15: sparse: expected void *__tmp
fs/filesystems.c:250:15: sparse: got struct file_systems_string *
fs/filesystems.c:286:13: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct file_systems_string *old @@ got struct file_systems_string [noderef] __rcu *static [addressable] [assigned] [toplevel] file_systems_string @@
fs/filesystems.c:286:13: sparse: expected struct file_systems_string *old
fs/filesystems.c:286:13: sparse: got struct file_systems_string [noderef] __rcu *static [addressable] [assigned] [toplevel] file_systems_string
fs/filesystems.c:332:9: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct file_systems_string [noderef] __rcu *volatile @@ got struct file_systems_string *[assigned] new @@
fs/filesystems.c:332:9: sparse: expected struct file_systems_string [noderef] __rcu *volatile
fs/filesystems.c:332:9: sparse: got struct file_systems_string *[assigned] new
vim +250 fs/filesystems.c
242
243 #ifdef CONFIG_PROC_FS
244 static void invalidate_filesystems_string(void)
245 {
246 struct file_systems_string *old;
247
248 lockdep_assert_held_write(&file_systems_lock);
249 file_systems_gen++;
> 250 old = rcu_replace_pointer(file_systems_string, NULL,
251 lockdep_is_held(&file_systems_lock));
252 if (old)
253 kfree_rcu(old, rcu);
254 }
255
--
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-12-06 11:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-06 11:28 fs/filesystems.c:250:15: sparse: sparse: incorrect type in initializer (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
all inboxes | Powered by JetHome®