All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:sched/core-sched 29/29] kernel/sched/sched.h:1165:30: sparse: sparse: context imbalance in '__sched_core_update_cookie' - wrong count at exit
@ 2021-04-01 18:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-01 18:25 UTC (permalink / raw)
  To: kbuild

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

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core-sched
head:   491d689ecb4f0997949741220d6f468bd3a682a4
commit: 491d689ecb4f0997949741220d6f468bd3a682a4 [29/29] sched: prctl() and cgroup interaction
:::::: branch date: 6 hours ago
:::::: commit date: 6 hours ago
config: i386-randconfig-s001-20210401 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-279-g6d5d9b42-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=491d689ecb4f0997949741220d6f468bd3a682a4
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/core-sched
        git checkout 491d689ecb4f0997949741220d6f468bd3a682a4
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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:
>> kernel/sched/sched.h:1165:30: sparse: sparse: context imbalance in '__sched_core_update_cookie' - wrong count at exit

vim +/__sched_core_update_cookie +1165 kernel/sched/sched.h

32e565880fdaf78 Peter Zijlstra 2020-11-17  1164  
cd9b834385acf67 Peter Zijlstra 2021-03-03 @1165  static inline raw_spinlock_t *__rq_lockp(struct rq *rq)
cd9b834385acf67 Peter Zijlstra 2021-03-03  1166  {
cd9b834385acf67 Peter Zijlstra 2021-03-03  1167  	if (rq->core_enabled)
cd9b834385acf67 Peter Zijlstra 2021-03-03  1168  		return &rq->core->__lock;
cd9b834385acf67 Peter Zijlstra 2021-03-03  1169  
cd9b834385acf67 Peter Zijlstra 2021-03-03  1170  	return &rq->__lock;
cd9b834385acf67 Peter Zijlstra 2021-03-03  1171  }
cd9b834385acf67 Peter Zijlstra 2021-03-03  1172  

:::::: The code at line 1165 was first introduced by commit
:::::: cd9b834385acf67c2bb433bcc7341067831b2dc6 sched: Optimize rq_lockp() usage

:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Peter Zijlstra <peterz@infradead.org>

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

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

only message in thread, other threads:[~2021-04-01 18:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01 18:25 [peterz-queue:sched/core-sched 29/29] kernel/sched/sched.h:1165:30: 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.