CC: [email protected]
CC: [email protected]
TO: Helge Deller <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   4f30a60aa78410496e5ffe632a371c00f0d83a8d
commit: fbdc8f0f4891df7b5eb643ec0a509a4ac7dcfc2e parisc: Rework arch_rw locking 
functions
date:   4 months ago
:::::: branch date: 4 hours ago
:::::: commit date: 4 months ago
config: parisc-randconfig-s032-20200805 (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.2-117-g8c7aee71-dirty
        git checkout fbdc8f0f4891df7b5eb643ec0a509a4ac7dcfc2e
        # 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 <[email protected]>


sparse warnings: (new ones prefixed by >>)

   fs/jbd2/checkpoint.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:153:23: sparse: sparse: context imbalance 
>> in '__jbd2_log_wait_for_space' - unexpected unlock
--
   fs/btrfs/locking.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:142:23: sparse: sparse: context imbalance 
in 'btrfs_set_lock_blocking_read' - unexpected unlock
>> arch/parisc/include/asm/spinlock.h:153:23: sparse: sparse: context imbalance 
>> in 'btrfs_set_lock_blocking_write' - unexpected unlock
   fs/btrfs/locking.c:247:6: sparse: sparse: context imbalance in 
'btrfs_tree_read_lock' - different lock contexts for basic block
   fs/btrfs/locking.c:288:5: sparse: sparse: context imbalance in 
'btrfs_tree_read_lock_atomic' - different lock contexts for basic block
   fs/btrfs/locking.c:310:5: sparse: sparse: context imbalance in 
'btrfs_try_tree_read_lock' - different lock contexts for basic block
   fs/btrfs/locking.c:335:5: sparse: sparse: context imbalance in 
'btrfs_try_tree_write_lock' - different lock contexts for basic block
   arch/parisc/include/asm/spinlock.h:142:23: sparse: sparse: context imbalance 
in 'btrfs_tree_read_unlock' - unexpected unlock
   fs/btrfs/locking.c:430:9: sparse: sparse: context imbalance in 
'btrfs_tree_lock' - wrong count at exit
   arch/parisc/include/asm/spinlock.h:153:23: sparse: sparse: context imbalance 
in 'btrfs_tree_unlock' - unexpected unlock
--
   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] <asn:4> *
   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] <asn:4> *
   fs/btrfs/ctree.c:1085:17: sparse:    struct extent_buffer *
   fs/btrfs/ctree.c:1859:17: sparse: sparse: incompatible types in comparison 
expression (different address spaces):
   fs/btrfs/ctree.c:1859:17: sparse:    struct extent_buffer [noderef] <asn:4> *
   fs/btrfs/ctree.c:1859:17: sparse:    struct extent_buffer *
   fs/btrfs/ctree.c:3351:9: sparse: sparse: incompatible types in comparison 
expression (different address spaces):
   fs/btrfs/ctree.c:3351:9: sparse:    struct extent_buffer [noderef] <asn:4> *
   fs/btrfs/ctree.c:3351: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:153:23: sparse: sparse: context imbalance 
>> in 'tree_mod_log_insert_move' - unexpected unlock
>> arch/parisc/include/asm/spinlock.h:153:23: sparse: sparse: context imbalance 
>> in 'tree_mod_log_eb_copy' - unexpected unlock

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fbdc8f0f4891df7b5eb643ec0a509a4ac7dcfc2e
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout fbdc8f0f4891df7b5eb643ec0a509a4ac7dcfc2e
vim +/__jbd2_log_wait_for_space +153 arch/parisc/include/asm/spinlock.h

^1da177e4c3f415 include/asm-parisc/spinlock.h      Linus Torvalds 2005-04-16  
147  
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  
148  static inline void arch_write_unlock(arch_rwlock_t *rw)
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  
149  {
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  
150       unsigned long flags;
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  
151  
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  
152       local_irq_save(flags);
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05 
@153       arch_spin_lock(&(rw->lock_mutex));
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  
154       rw->counter = __ARCH_RW_LOCK_UNLOCKED__;
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  
155       arch_spin_unlock(&(rw->lock_mutex));
fbdc8f0f4891df7 arch/parisc/include/asm/spinlock.h Helge Deller   2020-04-05  
156       local_irq_restore(flags);
^1da177e4c3f415 include/asm-parisc/spinlock.h      Linus Torvalds 2005-04-16  
157  }
^1da177e4c3f415 include/asm-parisc/spinlock.h      Linus Torvalds 2005-04-16  
158  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to