All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Gabriele Monaco <gmonaco@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Nam Cao <namcao@linutronix.de>,
	Juri Lelli <juri.lelli@redhat.com>
Subject: include/rv/da_monitor.h:343:23: sparse: sparse: Initializer entry defined twice
Date: Thu, 03 Dec 2026 13:37:54 +0100	[thread overview]
Message-ID: <20261203133631.LUD9pt2L-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-12-03 12:38 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=20261203133631.LUD9pt2L-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gmonaco@redhat.com \
    --cc=juri.lelli@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=namcao@linutronix.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.