All of lore.kernel.org
 help / color / mirror / Atom feed
* [tip:sched/core 26/29] include/linux/spinlock_api_smp.h:160:9: sparse: sparse: context imbalance in 'sched_core_update_cookie' - wrong count at exit
@ 2021-05-13 15:05 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-13 15:05 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
CC: x86(a)kernel.org
TO: Peter Zijlstra <peterz@infradead.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
head:   9f26990074931bbf797373e53104216059b300b1
commit: 6e33cad0af49336952e5541464bd02f5b5fd433e [26/29] sched: Trivial core scheduling cookie management
:::::: branch date: 29 hours ago
:::::: commit date: 29 hours ago
config: arm64-randconfig-s031-20210513 (attached as .config)
compiler: aarch64-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-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=6e33cad0af49336952e5541464bd02f5b5fd433e
        git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
        git fetch --no-tags tip sched/core
        git checkout 6e33cad0af49336952e5541464bd02f5b5fd433e
        # 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__' W=1 ARCH=arm64 

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/sched/core_sched.c: note: in included file (through include/linux/spinlock.h, include/linux/wait.h, include/linux/pid.h, ...):
>> include/linux/spinlock_api_smp.h:160:9: sparse: sparse: context imbalance in 'sched_core_update_cookie' - wrong count at exit

vim +/sched_core_update_cookie +160 include/linux/spinlock_api_smp.h

69d0ee7377eef8 Heiko Carstens  2009-08-31  154  
9c1721aa4994f6 Thomas Gleixner 2009-12-03  155  static inline void __raw_spin_unlock_irqrestore(raw_spinlock_t *lock,
69d0ee7377eef8 Heiko Carstens  2009-08-31  156  					    unsigned long flags)
69d0ee7377eef8 Heiko Carstens  2009-08-31  157  {
5facae4f3549b5 Qian Cai        2019-09-19  158  	spin_release(&lock->dep_map, _RET_IP_);
9828ea9d75c38f Thomas Gleixner 2009-12-03  159  	do_raw_spin_unlock(lock);
69d0ee7377eef8 Heiko Carstens  2009-08-31 @160  	local_irq_restore(flags);
69d0ee7377eef8 Heiko Carstens  2009-08-31  161  	preempt_enable();
69d0ee7377eef8 Heiko Carstens  2009-08-31  162  }
69d0ee7377eef8 Heiko Carstens  2009-08-31  163  

:::::: The code at line 160 was first introduced by commit
:::::: 69d0ee7377eef808e34ba5542b554ec97244b871 locking: Move spinlock function bodies to header file

:::::: TO: Heiko Carstens <heiko.carstens@de.ibm.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

---
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: 43544 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-13 15:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 15:05 [tip:sched/core 26/29] include/linux/spinlock_api_smp.h:160:9: sparse: sparse: context imbalance in 'sched_core_update_cookie' - wrong count at exit kernel test robot

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.