All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-stable-rc:linux-5.4.y 2735/3216] include/asm-generic/qspinlock.h:94:9: sparse: sparse: context imbalance in 'pull_rt_task' - unexpected unlock
@ 2020-11-13  3:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-13  3:34 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
TO: Juri Lelli <juri.lelli@redhat.com>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
CC: Daniel Bristot de Oliveira <bristot@redhat.com>
CC: Ingo Molnar <mingo@kernel.org>
CC: Valentin Schneider <valentin.schneider@arm.com>
CC: Sasha Levin <alexander.levin@microsoft.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head:   28fe0e171c2042692c2cf71df3e8cb4ad78d40da
commit: 78e27678db4ea62377425df497c7421359888b1a [2735/3216] sched/features: Fix !CONFIG_JUMP_LABEL case
:::::: branch date: 33 hours ago
:::::: commit date: 2 weeks ago
config: i386-randconfig-s002-20201113 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-107-gaf3512a6-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=78e27678db4ea62377425df497c7421359888b1a
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc linux-5.4.y
        git checkout 78e27678db4ea62377425df497c7421359888b1a
        # 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/rt.c:1673:9: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sched_domain *[assigned] sd @@     got struct sched_domain [noderef] <asn:4> *parent @@
   kernel/sched/rt.c:1673:9: sparse:     expected struct sched_domain *[assigned] sd
   kernel/sched/rt.c:1673:9: sparse:     got struct sched_domain [noderef] <asn:4> *parent
   kernel/sched/rt.c: note: in included file (through arch/x86/include/asm/qspinlock.h, arch/x86/include/asm/spinlock.h, include/linux/spinlock.h, ...):
   include/asm-generic/qspinlock.h:94:9: sparse: sparse: context imbalance in 'find_lock_lowest_rq' - unexpected unlock
   kernel/sched/rt.c:1859:9: sparse: sparse: context imbalance in 'push_rt_task' - unexpected unlock
>> include/asm-generic/qspinlock.h:94:9: sparse: sparse: context imbalance in 'pull_rt_task' - unexpected unlock

vim +/pull_rt_task +94 include/asm-generic/qspinlock.h

a33fda35e3a7655 Waiman Long 2015-04-24  83  
a33fda35e3a7655 Waiman Long 2015-04-24  84  #ifndef queued_spin_unlock
a33fda35e3a7655 Waiman Long 2015-04-24  85  /**
a33fda35e3a7655 Waiman Long 2015-04-24  86   * queued_spin_unlock - release a queued spinlock
a33fda35e3a7655 Waiman Long 2015-04-24  87   * @lock : Pointer to queued spinlock structure
a33fda35e3a7655 Waiman Long 2015-04-24  88   */
a33fda35e3a7655 Waiman Long 2015-04-24  89  static __always_inline void queued_spin_unlock(struct qspinlock *lock)
a33fda35e3a7655 Waiman Long 2015-04-24  90  {
a33fda35e3a7655 Waiman Long 2015-04-24  91  	/*
ca50e426f96c905 Pan Xinhui  2016-06-03  92  	 * unlock() needs release semantics:
a33fda35e3a7655 Waiman Long 2015-04-24  93  	 */
626e5fbc1435890 Will Deacon 2018-04-26 @94  	smp_store_release(&lock->locked, 0);
a33fda35e3a7655 Waiman Long 2015-04-24  95  }
a33fda35e3a7655 Waiman Long 2015-04-24  96  #endif
a33fda35e3a7655 Waiman Long 2015-04-24  97  

:::::: The code at line 94 was first introduced by commit
:::::: 626e5fbc14358901ddaa90ce510e0fbeab310432 locking/qspinlock: Use smp_store_release() in queued_spin_unlock()

:::::: TO: Will Deacon <will.deacon@arm.com>
:::::: CC: Ingo Molnar <mingo@kernel.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: 40893 bytes --]

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

only message in thread, other threads:[~2020-11-13  3:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-13  3:34 [linux-stable-rc:linux-5.4.y 2735/3216] include/asm-generic/qspinlock.h:94:9: sparse: sparse: context imbalance in 'pull_rt_task' - unexpected unlock 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.