All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [android-common:android17-6.18-2026-06 2/2] sound/firewire/bebob/bebob_stream.c:965:5: sparse: warning: context imbalance in 'snd_bebob_stream_lock_try' - wrong count at exit
Date: Thu, 03 Dec 2026 02:04:46 +0100	[thread overview]
Message-ID: <20261203020336.opOUwYOl-lkp@intel.com> (raw)

:::::: 
:::::: Manual check reason: "low confidence static check warning: sound/firewire/bebob/bebob_stream.c:965:5: sparse: warning: context imbalance in 'snd_bebob_stream_lock_try' - wrong count at exit"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: cros-kernel-buildreports@googlegroups.com

tree:   https://android.googlesource.com/kernel/common android17-6.18-2026-06
head:   20722089a295c92da5cb2a54c07bfc667f5b5427
commit: 9c2ca41d573c26c5b7b83149f81b2b17076e8d94 [2/2] ALSA: firewire: bebob: Use guard() for spin locks
:::::: branch date: 22 hours ago
:::::: commit date: 1 year, 3 months ago
config: i386-randconfig-r2309-20261201 (https://download.01.org/0day-ci/archive/20261203/20261203020336.opOUwYOl-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203020336.opOUwYOl-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: 9c2ca41d573c ("ALSA: firewire: bebob: Use guard() for spin locks")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261203020336.opOUwYOl-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   sound/firewire/bebob/bebob_stream.c:267:15: sparse: warning: Initializer entry defined twice
   sound/firewire/bebob/bebob_stream.c:267:15: sparse:   also defined here
   sound/firewire/bebob/bebob_stream.c:793:15: sparse: warning: Initializer entry defined twice
   sound/firewire/bebob/bebob_stream.c:793:15: sparse:   also defined here
>> sound/firewire/bebob/bebob_stream.c:965:5: sparse: warning: context imbalance in 'snd_bebob_stream_lock_try' - wrong count at exit
>> sound/firewire/bebob/bebob_stream.c:979:6: sparse: warning: context imbalance in 'snd_bebob_stream_lock_release' - wrong count at exit
--
>> sound/firewire/bebob/bebob_hwdep.c:53:1: sparse: warning: context imbalance in 'hwdep_poll' - wrong count at exit
>> sound/firewire/bebob/bebob_hwdep.c:87:1: sparse: warning: context imbalance in 'hwdep_lock' - wrong count at exit
>> sound/firewire/bebob/bebob_hwdep.c:100:1: sparse: warning: context imbalance in 'hwdep_unlock' - wrong count at exit
>> sound/firewire/bebob/bebob_hwdep.c:117:9: sparse: warning: context imbalance in 'hwdep_release' - wrong count at exit
--
>> sound/firewire/bebob/bebob_midi.c:47:13: sparse: warning: context imbalance in 'midi_capture_trigger' - wrong count at exit
>> sound/firewire/bebob/bebob_midi.c:61:13: sparse: warning: context imbalance in 'midi_playback_trigger' - wrong count at exit

vim +/snd_bebob_stream_lock_try +965 sound/firewire/bebob/bebob_stream.c

618eabeae711c5 Takashi Sakamoto 2014-04-25  964  
618eabeae711c5 Takashi Sakamoto 2014-04-25 @965  int snd_bebob_stream_lock_try(struct snd_bebob *bebob)
618eabeae711c5 Takashi Sakamoto 2014-04-25  966  {
9c2ca41d573c26 Takashi Iwai     2025-08-28  967  	guard(spinlock_irq)(&bebob->lock);
618eabeae711c5 Takashi Sakamoto 2014-04-25  968  
618eabeae711c5 Takashi Sakamoto 2014-04-25  969  	/* user land lock this */
9c2ca41d573c26 Takashi Iwai     2025-08-28  970  	if (bebob->dev_lock_count < 0)
9c2ca41d573c26 Takashi Iwai     2025-08-28  971  		return -EBUSY;
618eabeae711c5 Takashi Sakamoto 2014-04-25  972  
618eabeae711c5 Takashi Sakamoto 2014-04-25  973  	/* this is the first time */
618eabeae711c5 Takashi Sakamoto 2014-04-25  974  	if (bebob->dev_lock_count++ == 0)
618eabeae711c5 Takashi Sakamoto 2014-04-25  975  		snd_bebob_stream_lock_changed(bebob);
9c2ca41d573c26 Takashi Iwai     2025-08-28  976  	return 0;
618eabeae711c5 Takashi Sakamoto 2014-04-25  977  }
618eabeae711c5 Takashi Sakamoto 2014-04-25  978  
618eabeae711c5 Takashi Sakamoto 2014-04-25 @979  void snd_bebob_stream_lock_release(struct snd_bebob *bebob)

:::::: The code at line 965 was first introduced by commit
:::::: 618eabeae711c56d376daa147c6a684116d68705 ALSA: bebob: Add hwdep interface

:::::: TO: Takashi Sakamoto <o-takashi@sakamocchi.jp>
:::::: CC: Takashi Iwai <tiwai@suse.de>

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

                 reply	other threads:[~2026-12-03  1:05 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=20261203020336.opOUwYOl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@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.