CC: [email protected]
CC: [email protected]
TO: "Paul E. McKenney" <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f40ddce88593482919761f74910f42f4b84c004b
commit: 8cbd0e38a9f2de38e8991c5c1c6f9024b2731d17 rcu: Add Kconfig option for 
strict RCU grace periods
date:   6 months ago
:::::: branch date: 4 days ago
:::::: commit date: 6 months ago
config: ia64-randconfig-s031-20210219 (attached as .config)
compiler: ia64-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-215-g0fb77bb6-dirty
        # 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8cbd0e38a9f2de38e8991c5c1c6f9024b2731d17
        git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 8cbd0e38a9f2de38e8991c5c1c6f9024b2731d17
        # 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=ia64 

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


"sparse warnings: (new ones prefixed by >>)"
   kernel/locking/spinlock.c:149:17: sparse: sparse: context imbalance in 
'_raw_spin_lock' - wrong count at exit
   kernel/locking/spinlock.c: note: in included file (through 
arch/ia64/include/generated/asm/preempt.h, include/linux/preempt.h):
>> include/asm-generic/preempt.h:16:17: sparse: sparse: context imbalance in 
>> '_raw_spin_lock_irqsave' - wrong count at exit
>> include/asm-generic/preempt.h:16:17: sparse: sparse: context imbalance in 
>> '_raw_spin_lock_irq' - wrong count at exit
   kernel/locking/spinlock.c:173:17: sparse: sparse: context imbalance in 
'_raw_spin_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:221:17: sparse: sparse: context imbalance in 
'_raw_read_lock' - wrong count at exit
   include/asm-generic/preempt.h:16:17: sparse: sparse: context imbalance in 
'_raw_read_lock_irqsave' - wrong count at exit
   include/asm-generic/preempt.h:16:17: sparse: sparse: context imbalance in 
'_raw_read_lock_irq' - wrong count at exit
   kernel/locking/spinlock.c:245:17: sparse: sparse: context imbalance in 
'_raw_read_lock_bh' - wrong count at exit
   kernel/locking/spinlock.c:253:17: sparse: sparse: context imbalance in 
'_raw_read_unlock' - unexpected unlock
   kernel/locking/spinlock.c:261:17: sparse: sparse: context imbalance in 
'_raw_read_unlock_irqrestore' - unexpected unlock
   kernel/locking/spinlock.c:269:17: sparse: sparse: context imbalance in 
'_raw_read_unlock_irq' - unexpected unlock
   kernel/locking/spinlock.c:277:17: sparse: sparse: context imbalance in 
'_raw_read_unlock_bh' - unexpected unlock
   kernel/locking/spinlock.c:293:17: sparse: sparse: context imbalance in 
'_raw_write_lock' - wrong count at exit
   include/asm-generic/preempt.h:16:17: sparse: sparse: context imbalance in 
'_raw_write_lock_irqsave' - wrong count at exit
   include/asm-generic/preempt.h:16:17: sparse: sparse: context imbalance in 
'_raw_write_lock_irq' - wrong count at exit
   kernel/locking/spinlock.c:317:17: sparse: sparse: context imbalance in 
'_raw_write_lock_bh' - wrong count at exit
   kernel/locking/spinlock.c:325:17: sparse: sparse: context imbalance in 
'_raw_write_unlock' - unexpected unlock
   kernel/locking/spinlock.c:333:17: sparse: sparse: context imbalance in 
'_raw_write_unlock_irqrestore' - unexpected unlock
   kernel/locking/spinlock.c:341:17: sparse: sparse: context imbalance in 
'_raw_write_unlock_irq' - unexpected unlock
   kernel/locking/spinlock.c:349:17: sparse: sparse: context imbalance in 
'_raw_write_unlock_bh' - unexpected unlock

vim +/_raw_spin_lock_irqsave +16 include/asm-generic/preempt.h

a787870924dbd6f Peter Zijlstra 2013-08-14  13  
2e636d5e66c35df Peter Zijlstra 2016-05-16  14  static __always_inline volatile 
int *preempt_count_ptr(void)
a787870924dbd6f Peter Zijlstra 2013-08-14  15  {
a787870924dbd6f Peter Zijlstra 2013-08-14 @16   return 
&current_thread_info()->preempt_count;
a787870924dbd6f Peter Zijlstra 2013-08-14  17  }
a787870924dbd6f Peter Zijlstra 2013-08-14  18  

:::::: The code at line 16 was first introduced by commit
:::::: a787870924dbd6f321661e06d4ec1c7a408c9ccf sched, arch: Create 
asm/preempt.h

:::::: TO: Peter Zijlstra <[email protected]>
:::::: CC: Ingo Molnar <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to