* arch/parisc/include/asm/spinlock.h:143:9: sparse: sparse: context imbalance in 'migrate_write_unlock' - unexpected unlock
@ 2020-11-17 22:18 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-17 22:18 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 5653 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Nicholas Piggin <npiggin@gmail.com>
CC: Peter Zijlstra <peterz@infradead.org>
CC: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
CC: Thomas Gleixner <tglx@linutronix.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9c87c9f41245baa3fc4716cf39141439cf405b01
commit: 044d0d6de9f50192f9697583504a382347ee95ca lockdep: Only trace IRQ edges
date: 3 months ago
:::::: branch date: 23 hours ago
:::::: commit date: 3 months ago
config: parisc-randconfig-s031-20201117 (attached as .config)
compiler: hppa-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-107-gaf3512a6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=044d0d6de9f50192f9697583504a382347ee95ca
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 044d0d6de9f50192f9697583504a382347ee95ca
# 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__' ARCH=parisc
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 >>)"
mm/zsmalloc.c:1348:9: sparse: sparse: context imbalance in 'zs_map_object' - wrong count at exit
mm/zsmalloc.c:1383:9: sparse: sparse: context imbalance in 'zs_unmap_object' - unexpected unlock
mm/zsmalloc.c:889:19: sparse: sparse: context imbalance in 'find_alloced_obj' - different lock contexts for basic block
mm/zsmalloc.c:1719:25: sparse: sparse: context imbalance in 'migrate_zspage' - unexpected unlock
mm/zsmalloc.c:1848:13: sparse: sparse: context imbalance in 'migrate_write_lock' - wrong count at exit
mm/zsmalloc.c: note: in included file (through arch/parisc/include/asm/atomic.h, include/linux/atomic.h, arch/parisc/include/asm/bitops.h, ...):
>> arch/parisc/include/asm/spinlock.h:143:9: sparse: sparse: context imbalance in 'migrate_write_unlock' - unexpected unlock
mm/zsmalloc.c:2085:9: sparse: sparse: context imbalance in 'zs_page_migrate' - different lock contexts for basic block
--
fs/btrfs/ctree.c:129:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
fs/btrfs/ctree.c:129:22: sparse: struct extent_buffer [noderef] __rcu *
fs/btrfs/ctree.c:129:22: sparse: struct extent_buffer *
fs/btrfs/ctree.c:1085:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
fs/btrfs/ctree.c:1085:17: sparse: struct extent_buffer [noderef] __rcu *
fs/btrfs/ctree.c:1085:17: sparse: struct extent_buffer *
fs/btrfs/ctree.c:1863:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
fs/btrfs/ctree.c:1863:17: sparse: struct extent_buffer [noderef] __rcu *
fs/btrfs/ctree.c:1863:17: sparse: struct extent_buffer *
fs/btrfs/ctree.c:3349:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
fs/btrfs/ctree.c:3349:9: sparse: struct extent_buffer [noderef] __rcu *
fs/btrfs/ctree.c:3349:9: sparse: struct extent_buffer *
fs/btrfs/ctree.c: note: in included file (through arch/parisc/include/asm/atomic.h, include/linux/atomic.h, arch/parisc/include/asm/bitops.h, ...):
>> arch/parisc/include/asm/spinlock.h:143:9: sparse: sparse: context imbalance in 'tree_mod_log_insert_move' - unexpected unlock
>> arch/parisc/include/asm/spinlock.h:143:9: sparse: sparse: context imbalance in 'tree_mod_log_eb_copy' - unexpected unlock
vim +/migrate_write_unlock +143 arch/parisc/include/asm/spinlock.h
^1da177e4c3f415 include/asm-parisc/spinlock.h Linus Torvalds 2005-04-16 134
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller 2020-04-05 135 static inline void arch_write_unlock(arch_rwlock_t *rw)
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller 2020-04-05 136 {
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller 2020-04-05 137 unsigned long flags;
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller 2020-04-05 138
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller 2020-04-05 139 local_irq_save(flags);
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller 2020-04-05 140 arch_spin_lock(&(rw->lock_mutex));
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller 2020-04-05 141 rw->counter = __ARCH_RW_LOCK_UNLOCKED__;
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller 2020-04-05 142 arch_spin_unlock(&(rw->lock_mutex));
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller 2020-04-05 @143 local_irq_restore(flags);
^1da177e4c3f415 include/asm-parisc/spinlock.h Linus Torvalds 2005-04-16 144 }
^1da177e4c3f415 include/asm-parisc/spinlock.h Linus Torvalds 2005-04-16 145
:::::: The code at line 143 was first introduced by commit
:::::: fbdc8f0f4891df7b5eb643ec0a509a4ac7dcfc2e parisc: Rework arch_rw locking functions
:::::: TO: Helge Deller <deller@gmx.de>
:::::: CC: Helge Deller <deller@gmx.de>
---
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: 26292 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-17 22:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-17 22:18 arch/parisc/include/asm/spinlock.h:143:9: sparse: sparse: context imbalance in 'migrate_write_unlock' - 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.