* include/linux/spinlock.h:404:9: sparse: sparse: context imbalance in 'ehci_turn_off_all_ports' - unexpected unlock
@ 2020-09-13 14:23 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-09-13 14:23 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 5692 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: 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 <lkp@intel.com>
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 <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.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: 31115 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* include/linux/spinlock.h:404:9: sparse: sparse: context imbalance in 'ehci_turn_off_all_ports' - unexpected unlock
@ 2020-10-29 22:28 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-10-29 22:28 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 4021 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: 07e0887302450a62f51dba72df6afb5fabb23d1c
commit: 044d0d6de9f50192f9697583504a382347ee95ca lockdep: Only trace IRQ edges
date: 9 weeks ago
:::::: branch date: 2 hours ago
:::::: commit date: 9 weeks ago
config: mips-randconfig-s031-20201030 (attached as .config)
compiler: mips64-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-56-gc09e8239-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=mips
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 >>)"
command-line: note: in included file:
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
builtin:0:0: sparse: this was the original definition
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
vim +/ehci_turn_off_all_ports +404 include/linux/spinlock.h
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 <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.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: 28823 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* include/linux/spinlock.h:404:9: sparse: sparse: context imbalance in 'ehci_turn_off_all_ports' - unexpected unlock
@ 2020-09-27 21:22 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-09-27 21:22 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3562 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: 16bc1d5432ebd8e50e480eb300fd2b84afa28286
commit: 044d0d6de9f50192f9697583504a382347ee95ca lockdep: Only trace IRQ edges
date: 5 weeks ago
:::::: branch date: 2 hours ago
:::::: commit date: 5 weeks ago
config: riscv-randconfig-s032-20200928 (attached as .config)
compiler: riscv64-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-201-g24bdaac6-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=riscv
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 >>)
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/usb/class/cdc-wdm.c:461:16: sparse: sparse: context imbalance in 'service_outstanding_interrupt' - unexpected unlock
vim +/ehci_turn_off_all_ports +404 include/linux/spinlock.h
c2f21ce2e31286 Thomas Gleixner 2009-12-02 401
3490565b633c70 Denys Vlasenko 2015-07-13 402 static __always_inline void spin_unlock_irq(spinlock_t *lock)
c2f21ce2e31286 Thomas Gleixner 2009-12-02 403 {
c2f21ce2e31286 Thomas Gleixner 2009-12-02 @404 raw_spin_unlock_irq(&lock->rlock);
c2f21ce2e31286 Thomas Gleixner 2009-12-02 405 }
c2f21ce2e31286 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 <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.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: 28204 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-29 22:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-13 14:23 include/linux/spinlock.h:404:9: sparse: sparse: context imbalance in 'ehci_turn_off_all_ports' - unexpected unlock kernel test robot
2020-09-27 21:22 kernel test robot
2020-10-29 22:28 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.