From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753259AbdEIBWA (ORCPT ); Mon, 8 May 2017 21:22:00 -0400 Received: from mga04.intel.com ([192.55.52.120]:52938 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751243AbdEIBV7 (ORCPT ); Mon, 8 May 2017 21:21:59 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,311,1491289200"; d="scan'208";a="97329742" Date: Tue, 9 May 2017 09:21:22 +0800 From: kbuild test robot To: Anton Blanchard Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, Ingo Molnar Subject: include/linux/spinlock_api_smp.h:151:27: sparse: context imbalance in '__replace_page' - unexpected unlock Message-ID: <201705090913.4fhIfaLj%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 :::::: CC: Thomas Gleixner --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation