mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Marco Elver <elver@google.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Peter Zijlstra <peterz@infradead.org>
Subject: lib/test_context-analysis.c:470:17: sparse: sparse: Initializer entry defined twice
Date: Thu, 03 Dec 2026 09:04:30 +0100	[thread overview]
Message-ID: <20261203085455.zwCr6oYf-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
commit: d3febf16dee28a74b01ba43195ee4965edb6208f locking/local_lock: Support Clang's context analysis
date:   11 months ago
config: x86_64-randconfig-r2306-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203085455.zwCr6oYf-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203085455.zwCr6oYf-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: d3febf16dee2 ("locking/local_lock: Support Clang's context analysis")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261203085455.zwCr6oYf-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   lib/test_context-analysis.c:148:1: sparse: sparse: undefined identifier '__cond_acquire'
   lib/test_context-analysis.c:83:1: sparse: sparse: context imbalance in 'test_raw_spinlock_trylock' - wrong count at exit
   lib/test_context-analysis.c:83:1: sparse: sparse: context imbalance in 'test_raw_spinlock_guard' - wrong count at exit
   lib/test_context-analysis.c:90:20: sparse: sparse: context imbalance in 'test_raw_spinlock_trylock_extra' - wrong count at exit
   lib/test_context-analysis.c:107:1: sparse: sparse: context imbalance in 'test_spinlock_trylock' - wrong count at exit
   lib/test_context-analysis.c:107:1: sparse: sparse: context imbalance in 'test_spinlock_guard' - wrong count at exit
   lib/test_context-analysis.c:114:20: sparse: sparse: context imbalance in 'test_spinlock_trylock_extra' - wrong count at exit
   lib/test_context-analysis.c:131:1: sparse: sparse: context imbalance in 'test_write_lock_guard' - wrong count at exit
   lib/test_context-analysis.c:148:1: sparse: sparse: context imbalance in 'test_read_lock_guard' - wrong count at exit
   lib/test_context-analysis.c:191:9: sparse: sparse: context imbalance in 'test_mutex_trylock' - wrong count at exit
   lib/test_context-analysis.c:203:20: sparse: sparse: context imbalance in 'test_mutex_guard' - wrong count at exit
   lib/test_context-analysis.c:209:20: sparse: sparse: context imbalance in 'test_mutex_cond_guard' - wrong count at exit
   lib/test_context-analysis.c: note: in included file:
   include/linux/seqlock.h:1255:28: sparse: sparse: context imbalance in 'test_seqlock_scoped' - unexpected unlock
   lib/test_context-analysis.c:315:20: sparse: sparse: context imbalance in 'test_rwsem_guard' - wrong count at exit
   lib/test_context-analysis.c:321:20: sparse: sparse: context imbalance in 'test_rwsem_cond_guard' - wrong count at exit
   lib/test_context-analysis.c: note: in included file:
   include/linux/rcupdate.h:908:9: sparse: sparse: context imbalance in 'test_rcu_guard' - unexpected unlock
   lib/test_context-analysis.c:457:20: sparse: sparse: context imbalance in 'test_srcu_guard' - wrong count at exit
>> lib/test_context-analysis.c:470:17: sparse: sparse: Initializer entry defined twice
   lib/test_context-analysis.c:470:17: sparse:   also defined here
   lib/test_context-analysis.c:500:20: sparse: sparse: context imbalance in 'test_local_lock_guard' - wrong count at exit
   lib/test_context-analysis.c:514:17: sparse: sparse: Initializer entry defined twice
   lib/test_context-analysis.c:514:17: sparse:   also defined here
   lib/test_context-analysis.c:530:17: sparse: sparse: context imbalance in 'test_local_trylock' - unexpected unlock

vim +470 lib/test_context-analysis.c

   468	
   469	static DEFINE_PER_CPU(struct test_local_lock_data, test_local_lock_data) = {
 > 470		.lock = INIT_LOCAL_LOCK(lock),
   471	};
   472	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-12-03  8:04 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=20261203085455.zwCr6oYf-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=elver@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=peterz@infradead.org \
    /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®