All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: arch/parisc/include/asm/spinlock.h:153:23: sparse: sparse: context imbalance in '_raw_write_unlock' - unexpected unlock
Date: Tue, 20 Oct 2020 21:29:48 +0800	[thread overview]
Message-ID: <202010202143.II3R64Cx-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 6687 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Helge Deller <deller@gmx.de>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   270315b8235e3d10c2e360cff56c2f9e0915a252
commit: fbdc8f0f4891df7b5eb643ec0a509a4ac7dcfc2e parisc: Rework arch_rw locking functions
date:   7 months ago
:::::: branch date: 12 hours ago
:::::: commit date: 7 months ago
config: parisc-randconfig-s032-20201020 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fbdc8f0f4891df7b5eb643ec0a509a4ac7dcfc2e
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout fbdc8f0f4891df7b5eb643ec0a509a4ac7dcfc2e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


"sparse warnings: (new ones prefixed by >>)"
   kernel/locking/spinlock.c:126:1: sparse: sparse: symbol '__raw_spin_lock' was not declared. Should it be static?
   kernel/locking/spinlock.c:126:1: sparse: sparse: symbol '__raw_spin_lock_irqsave' was not declared. Should it be static?
   kernel/locking/spinlock.c:126:1: sparse: sparse: symbol '__raw_spin_lock_irq' was not declared. Should it be static?
   kernel/locking/spinlock.c:126:1: sparse: sparse: symbol '__raw_spin_lock_bh' was not declared. Should it be static?
   kernel/locking/spinlock.c:127:1: sparse: sparse: symbol '__raw_read_lock' was not declared. Should it be static?
   kernel/locking/spinlock.c:127:1: sparse: sparse: symbol '__raw_read_lock_irqsave' was not declared. Should it be static?
   kernel/locking/spinlock.c:127:1: sparse: sparse: symbol '__raw_read_lock_irq' was not declared. Should it be static?
   kernel/locking/spinlock.c:127:1: sparse: sparse: symbol '__raw_read_lock_bh' was not declared. Should it be static?
   kernel/locking/spinlock.c:128:1: sparse: sparse: symbol '__raw_write_lock' was not declared. Should it be static?
   kernel/locking/spinlock.c:128:1: sparse: sparse: symbol '__raw_write_lock_irqsave' was not declared. Should it be static?
   kernel/locking/spinlock.c:128:1: sparse: sparse: symbol '__raw_write_lock_irq' was not declared. Should it be static?
   kernel/locking/spinlock.c:128:1: sparse: sparse: symbol '__raw_write_lock_bh' was not declared. Should it be static?
   kernel/locking/spinlock.c:126:1: sparse: sparse: context imbalance in '__raw_spin_lock_irq' - wrong count at exit
   kernel/locking/spinlock.c:126:1: sparse: sparse: context imbalance in '__raw_spin_lock_bh' - wrong count at exit
   kernel/locking/spinlock.c:127:1: sparse: sparse: context imbalance in '__raw_read_lock_irq' - wrong count at exit
   kernel/locking/spinlock.c:127:1: sparse: sparse: context imbalance in '__raw_read_lock_bh' - wrong count at exit
   kernel/locking/spinlock.c:128:1: sparse: sparse: context imbalance in '__raw_write_lock_irq' - wrong count at exit
   kernel/locking/spinlock.c:128:1: sparse: sparse: context imbalance in '__raw_write_lock_bh' - wrong count at exit
   kernel/locking/spinlock.c:181:17: sparse: sparse: context imbalance in '_raw_spin_unlock' - unexpected unlock
   kernel/locking/spinlock.c:189:17: sparse: sparse: context imbalance in '_raw_spin_unlock_irqrestore' - unexpected unlock
   kernel/locking/spinlock.c:197:17: sparse: sparse: context imbalance in '_raw_spin_unlock_irq' - unexpected unlock
   kernel/locking/spinlock.c:205:17: sparse: sparse: context imbalance in '_raw_spin_unlock_bh' - unexpected unlock
   kernel/locking/spinlock.c: note: in included file (through arch/parisc/include/asm/atomic.h, include/linux/atomic.h, arch/parisc/include/asm/bitops.h, ...):
   arch/parisc/include/asm/spinlock.h:142:23: sparse: sparse: context imbalance in '_raw_read_unlock' - unexpected unlock
   arch/parisc/include/asm/spinlock.h:142:23: sparse: sparse: context imbalance in '_raw_read_unlock_irqrestore' - unexpected unlock
   arch/parisc/include/asm/spinlock.h:142:23: sparse: sparse: context imbalance in '_raw_read_unlock_irq' - unexpected unlock
   arch/parisc/include/asm/spinlock.h:142:23: sparse: sparse: context imbalance in '_raw_read_unlock_bh' - unexpected unlock
>> arch/parisc/include/asm/spinlock.h:153:23: sparse: sparse: context imbalance in '_raw_write_unlock' - unexpected unlock
   arch/parisc/include/asm/spinlock.h:153:23: sparse: sparse: context imbalance in '_raw_write_unlock_irqrestore' - unexpected unlock
>> arch/parisc/include/asm/spinlock.h:153:23: sparse: sparse: context imbalance in '_raw_write_unlock_irq' - unexpected unlock
   arch/parisc/include/asm/spinlock.h:153:23: sparse: sparse: context imbalance in '_raw_write_unlock_bh' - unexpected unlock

vim +/_raw_write_unlock +153 arch/parisc/include/asm/spinlock.h

^1da177e4c3f41 include/asm-parisc/spinlock.h      Linus Torvalds 2005-04-16  147  
fbdc8f0f4891df arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  148  static inline void arch_write_unlock(arch_rwlock_t *rw)
fbdc8f0f4891df arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  149  {
fbdc8f0f4891df arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  150  	unsigned long flags;
fbdc8f0f4891df arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  151  
fbdc8f0f4891df arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  152  	local_irq_save(flags);
fbdc8f0f4891df arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05 @153  	arch_spin_lock(&(rw->lock_mutex));
fbdc8f0f4891df arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  154  	rw->counter = __ARCH_RW_LOCK_UNLOCKED__;
fbdc8f0f4891df arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  155  	arch_spin_unlock(&(rw->lock_mutex));
fbdc8f0f4891df arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  156  	local_irq_restore(flags);
^1da177e4c3f41 include/asm-parisc/spinlock.h      Linus Torvalds 2005-04-16  157  }
^1da177e4c3f41 include/asm-parisc/spinlock.h      Linus Torvalds 2005-04-16  158  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 22759 bytes --]

             reply	other threads:[~2020-10-20 13:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-20 13:29 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-12-05 20:20 arch/parisc/include/asm/spinlock.h:153:23: sparse: sparse: context imbalance in '_raw_write_unlock' - unexpected unlock kernel test robot
2020-07-31 13:18 kernel test robot

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=202010202143.II3R64Cx-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.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 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.