[lkml]   [2020]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectinclude/linux/spinlock.h:408:9: sparse: sparse: context imbalance in 'ks8851_unlock_par' - unexpected unlock
tree: master
head: 83bdc7275e6206f560d247be856bceba3e1ed8f2
commit: 797047f875b5463719cc70ba213eb691d453c946 net: ks8851: Implement Parallel bus operations
date: 9 weeks ago
config: arm-randconfig-s031-20200730 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-98-g4932334a-dirty
git checkout 797047f875b5463719cc70ba213eb691d453c946
# 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=arm

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

sparse warnings: (new ones prefixed by >>)

drivers/net/ethernet/micrel/ks8851_par.c:64:13: sparse: sparse: context imbalance in 'ks8851_lock_par' - wrong count at exit
drivers/net/ethernet/micrel/ks8851_par.c: note: in included file (through include/linux/seqlock.h, include/linux/time.h, include/linux/ktime.h, ...):
>> include/linux/spinlock.h:408:9: sparse: sparse: context imbalance in 'ks8851_unlock_par' - unexpected unlock

vim +/ks8851_unlock_par +408 include/linux/spinlock.h

c2f21ce2e31286 Thomas Gleixner 2009-12-02 405
3490565b633c70 Denys Vlasenko 2015-07-13 406 static __always_inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags)
c2f21ce2e31286 Thomas Gleixner 2009-12-02 407 {
c2f21ce2e31286 Thomas Gleixner 2009-12-02 @408 raw_spin_unlock_irqrestore(&lock->rlock, flags);
c2f21ce2e31286 Thomas Gleixner 2009-12-02 409 }
c2f21ce2e31286 Thomas Gleixner 2009-12-02 410

:::::: The code at line 408 was first introduced by commit
:::::: c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3 locking: Implement new raw_spinlock

:::::: TO: Thomas Gleixner <>
:::::: CC: Thomas Gleixner <>

0-DAY CI Kernel Test Service, Intel Corporation
[unhandled content-type:application/gzip]
 \ /
  Last update: 2020-07-30 14:16    [W:0.031 / U:2.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site