* include/linux/spinlock_api_smp.h:151:27: sparse: context imbalance in '__replace_page' - unexpected unlock
@ 2017-05-09 1:21 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-05-09 1:21 UTC (permalink / raw)
To: Anton Blanchard; +Cc: kbuild-all, linux-kernel, Ingo Molnar
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2d3e4866dea96b0506395b47bfefb234f2088dac
commit: 6b0b7551428e4caae1e2c023a529465a9a9ae2d4 perf/core: Rename CONFIG_[UK]PROBE_EVENT to CONFIG_[UK]PROBE_EVENTS
date: 10 weeks ago
reproduce:
# apt-get install sparse
git checkout 6b0b7551428e4caae1e2c023a529465a9a9ae2d4
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> include/linux/spinlock_api_smp.h:151:27: sparse: context imbalance in '__replace_page' - unexpected unlock
vim +/__replace_page +151 include/linux/spinlock_api_smp.h
69d0ee73 Heiko Carstens 2009-08-31 135 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_);
9828ea9d Thomas Gleixner 2009-12-03 136 LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock);
69d0ee73 Heiko Carstens 2009-08-31 137 }
69d0ee73 Heiko Carstens 2009-08-31 138
9c1721aa Thomas Gleixner 2009-12-03 139 static inline void __raw_spin_lock(raw_spinlock_t *lock)
69d0ee73 Heiko Carstens 2009-08-31 140 {
69d0ee73 Heiko Carstens 2009-08-31 141 preempt_disable();
69d0ee73 Heiko Carstens 2009-08-31 142 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_);
9828ea9d Thomas Gleixner 2009-12-03 143 LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock);
69d0ee73 Heiko Carstens 2009-08-31 144 }
69d0ee73 Heiko Carstens 2009-08-31 145
ae58403f Chen Gang 2013-06-19 146 #endif /* !CONFIG_GENERIC_LOCKBREAK || CONFIG_DEBUG_LOCK_ALLOC */
69d0ee73 Heiko Carstens 2009-08-31 147
9c1721aa Thomas Gleixner 2009-12-03 148 static inline void __raw_spin_unlock(raw_spinlock_t *lock)
69d0ee73 Heiko Carstens 2009-08-31 149 {
69d0ee73 Heiko Carstens 2009-08-31 150 spin_release(&lock->dep_map, 1, _RET_IP_);
9828ea9d Thomas Gleixner 2009-12-03 @151 do_raw_spin_unlock(lock);
69d0ee73 Heiko Carstens 2009-08-31 152 preempt_enable();
69d0ee73 Heiko Carstens 2009-08-31 153 }
69d0ee73 Heiko Carstens 2009-08-31 154
9c1721aa Thomas Gleixner 2009-12-03 155 static inline void __raw_spin_unlock_irqrestore(raw_spinlock_t *lock,
69d0ee73 Heiko Carstens 2009-08-31 156 unsigned long flags)
69d0ee73 Heiko Carstens 2009-08-31 157 {
69d0ee73 Heiko Carstens 2009-08-31 158 spin_release(&lock->dep_map, 1, _RET_IP_);
9828ea9d Thomas Gleixner 2009-12-03 159 do_raw_spin_unlock(lock);
:::::: The code at line 151 was first introduced by commit
:::::: 9828ea9d75c38fe3dce05d00566eed61c85732e6 locking: Further name space cleanups
:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-09 1:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-09 1:21 include/linux/spinlock_api_smp.h:151:27: sparse: context imbalance in '__replace_page' - unexpected unlock kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®