* include/rv/da_monitor.h:343:23: sparse: sparse: Initializer entry defined twice
@ 2026-12-03 12:37 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-12-03 12:37 UTC (permalink / raw)
To: Gabriele Monaco; +Cc: oe-kbuild-all, linux-kernel, Nam Cao, Juri Lelli
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
commit: b133207deb72609ad4da40c4d50128a5e150677b rv: Add nomiss deadline monitor
date: 8 months ago
config: s390-randconfig-r2310-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203133631.LUD9pt2L-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project c81a35549c5c976f799dc394e6eaf41da1ff2f64)
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203133631.LUD9pt2L-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: b133207deb72 ("rv: Add nomiss deadline monitor")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261203133631.LUD9pt2L-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
kernel/trace/rv/monitors/nomiss/nomiss.c: note: in included file (through include/rv/ha_monitor.h):
>> include/rv/da_monitor.h:343:23: sparse: sparse: Initializer entry defined twice
include/rv/da_monitor.h:343:23: sparse: also defined here
kernel/trace/rv/monitors/nomiss/nomiss.c: note: in included file:
kernel/trace/rv/monitors/deadline/deadline.h:115:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *dst @@ got struct sched_attr [noderef] __user * @@
kernel/trace/rv/monitors/deadline/deadline.h:115:46: sparse: expected void *dst
kernel/trace/rv/monitors/deadline/deadline.h:115:46: sparse: got struct sched_attr [noderef] __user *
kernel/trace/rv/monitors/deadline/deadline.h:118:21: sparse: sparse: dereference of noderef expression
kernel/trace/rv/monitors/deadline/deadline.h:120:30: sparse: sparse: dereference of noderef expression
vim +343 include/rv/da_monitor.h
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 335
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 336 /*
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 337 * da_create_empty_storage - pre-allocate an empty storage
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 338 */
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 339 static inline struct da_monitor_storage *da_create_empty_storage(da_id_type id)
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 340 {
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 341 struct da_monitor_storage *mon_storage;
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 342
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 @343 mon_storage = kmalloc_nolock(sizeof(struct da_monitor_storage),
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 344 __GFP_ZERO, NUMA_NO_NODE);
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 345 if (!mon_storage)
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 346 return NULL;
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 347
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 348 hash_add_rcu(da_monitor_ht, &mon_storage->node, id);
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 349 mon_storage->id = id;
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 350 return mon_storage;
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 351 }
4a24127bd6cbf0 Gabriele Monaco 2026-03-30 352
:::::: The code at line 343 was first introduced by commit
:::::: 4a24127bd6cbf03fb17de8b43f2d8db3f55ca333 rv: Add support for per-object monitors in DA/HA
:::::: TO: Gabriele Monaco <gmonaco@redhat.com>
:::::: CC: Gabriele Monaco <gmonaco@redhat.com>
--
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-03 12:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-03 12:37 include/rv/da_monitor.h:343:23: sparse: sparse: Initializer entry defined twice 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®