CC: [email protected]
CC: [email protected]
TO: Nicholas Piggin <[email protected]>
CC: Peter Zijlstra <[email protected]>
CC: "Steven Rostedt (VMware)" <[email protected]>
CC: Thomas Gleixner <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   ef2e9a563b0cd7965e2a1263125dcbb1c86aa6cc
commit: 044d0d6de9f50192f9697583504a382347ee95ca lockdep: Only trace IRQ edges
date:   3 weeks ago
:::::: branch date: 18 hours ago
:::::: commit date: 3 weeks ago
config: openrisc-randconfig-s032-20200912 (attached as .config)
compiler: or1k-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-191-g10164920-dirty
        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=openrisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)

   drivers/usb/host/ehci-hcd.c: note: in included file:
   drivers/usb/host/ehci-q.c:1389:27: sparse: sparse: incorrect type in 
assignment (different base types) @@     expected restricted __le32 [usertype] 
old_current @@     got int @@
   drivers/usb/host/ehci-q.c:1389:27: sparse:     expected restricted __le32 
[usertype] old_current
   drivers/usb/host/ehci-q.c:1389:27: sparse:     got int
   drivers/usb/host/ehci-hcd.c:566:27: sparse: sparse: incorrect type in 
assignment (different base types) @@     expected restricted __le32 [usertype] 
old_current @@     got int @@
   drivers/usb/host/ehci-hcd.c:566:27: sparse:     expected restricted __le32 
[usertype] old_current
   drivers/usb/host/ehci-hcd.c:566:27: sparse:     got int
   drivers/usb/host/ehci-hcd.c: note: in included file (through 
include/linux/mmzone.h, include/linux/gfp.h, include/linux/umh.h, 
include/linux/kmod.h, ...):
>> include/linux/spinlock.h:404:9: sparse: sparse: context imbalance in 
>> 'ehci_turn_off_all_ports' - unexpected unlock
--
   drivers/gpu/drm/vkms/vkms_crtc.c: note: in included file (through 
include/linux/radix-tree.h, include/linux/idr.h, include/linux/kernfs.h, ...):
>> include/linux/spinlock.h:379:9: sparse: sparse: context imbalance in 
>> 'vkms_crtc_atomic_begin' - wrong count at exit
   include/linux/spinlock.h:404:9: sparse: sparse: context imbalance in 
'vkms_crtc_atomic_flush' - unexpected unlock

# 
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
vim +/ehci_turn_off_all_ports +404 include/linux/spinlock.h

c2f21ce2e31286a Thomas Gleixner 2009-12-02  376  
3490565b633c705 Denys Vlasenko  2015-07-13  377  static __always_inline void 
spin_lock_irq(spinlock_t *lock)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  378  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02 @379         
raw_spin_lock_irq(&lock->rlock);
c2f21ce2e31286a Thomas Gleixner 2009-12-02  380  }
c2f21ce2e31286a Thomas Gleixner 2009-12-02  381  
c2f21ce2e31286a Thomas Gleixner 2009-12-02  382  #define 
spin_lock_irqsave(lock, flags)                         \
c2f21ce2e31286a Thomas Gleixner 2009-12-02  383  do {                           
                                \
c2f21ce2e31286a Thomas Gleixner 2009-12-02  384         
raw_spin_lock_irqsave(spinlock_check(lock), flags);     \
c2f21ce2e31286a Thomas Gleixner 2009-12-02  385  } while (0)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  386  
c2f21ce2e31286a Thomas Gleixner 2009-12-02  387  #define 
spin_lock_irqsave_nested(lock, flags, subclass)                        \
c2f21ce2e31286a Thomas Gleixner 2009-12-02  388  do {                           
                                        \
c2f21ce2e31286a Thomas Gleixner 2009-12-02  389         
raw_spin_lock_irqsave_nested(spinlock_check(lock), flags, subclass); \
c2f21ce2e31286a Thomas Gleixner 2009-12-02  390  } while (0)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  391  
3490565b633c705 Denys Vlasenko  2015-07-13  392  static __always_inline void 
spin_unlock(spinlock_t *lock)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  393  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02  394         
raw_spin_unlock(&lock->rlock);
c2f21ce2e31286a Thomas Gleixner 2009-12-02  395  }
c2f21ce2e31286a Thomas Gleixner 2009-12-02  396  
3490565b633c705 Denys Vlasenko  2015-07-13  397  static __always_inline void 
spin_unlock_bh(spinlock_t *lock)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  398  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02  399         
raw_spin_unlock_bh(&lock->rlock);
c2f21ce2e31286a Thomas Gleixner 2009-12-02  400  }
c2f21ce2e31286a Thomas Gleixner 2009-12-02  401  
3490565b633c705 Denys Vlasenko  2015-07-13  402  static __always_inline void 
spin_unlock_irq(spinlock_t *lock)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  403  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02 @404         
raw_spin_unlock_irq(&lock->rlock);
c2f21ce2e31286a Thomas Gleixner 2009-12-02  405  }
c2f21ce2e31286a Thomas Gleixner 2009-12-02  406  

:::::: The code at line 404 was first introduced by commit
:::::: c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3 locking: Implement new 
raw_spinlock

:::::: TO: Thomas Gleixner <[email protected]>
:::::: CC: Thomas Gleixner <[email protected]>

---
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