tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/wip
head: a76254f60dc69826643c45a19418b3e4c67d68f4
commit: 8e0c3933252fff31aaf97b37f660b1a3107debd2 [6/7] lockdep: Only trace IRQ edges
config: i386-randconfig-s001-20200819 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-183-gaa6ede3b-dirty
git checkout 8e0c3933252fff31aaf97b37f660b1a3107debd2
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/scsi/qla1280.c:3060:52: sparse: sparse: Using plain integer as NULL pointer
drivers/scsi/qla1280.c:2326:16: sparse: sparse: cast to restricted __le16
drivers/scsi/qla1280.c:645:27: sparse: sparse: incorrect type in assignment (different
base types) @@ expected unsigned short [usertype] isp_parameter @@ got restricted
__le16 [usertype] @@
drivers/scsi/qla1280.c:645:27: sparse: expected unsigned short [usertype]
isp_parameter
drivers/scsi/qla1280.c:645:27: sparse: got restricted __le16 [usertype]
drivers/scsi/qla1280.c:646:32: sparse: sparse: incorrect type in assignment (different
base types) @@ expected unsigned short [usertype] w @@ got restricted __le16
[usertype] @@
drivers/scsi/qla1280.c:646:32: sparse: expected unsigned short [usertype] w
drivers/scsi/qla1280.c:646:32: sparse: got restricted __le16 [usertype]
drivers/scsi/qla1280.c:648:46: sparse: sparse: incorrect type in assignment (different
base types) @@ expected unsigned short [usertype] selection_timeout @@ got
restricted __le16 [usertype] @@
drivers/scsi/qla1280.c:648:46: sparse: expected unsigned short [usertype]
selection_timeout
drivers/scsi/qla1280.c:648:46: sparse: got restricted __le16 [usertype]
drivers/scsi/qla1280.c:649:44: sparse: sparse: incorrect type in assignment (different
base types) @@ expected unsigned short [usertype] max_queue_depth @@ got
restricted __le16 [usertype] @@
drivers/scsi/qla1280.c:649:44: sparse: expected unsigned short [usertype]
max_queue_depth
drivers/scsi/qla1280.c:649:44: sparse: got restricted __le16 [usertype]
drivers/scsi/qla1280.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 '_qla1280_wait_for_single_command' - unexpected unlock
include/linux/spinlock.h:404:9: sparse: sparse: context imbalance in
'qla1280_request_firmware' - unexpected unlock
> include/linux/spinlock.h:404:9: sparse: sparse: context imbalance
in 'qla1280_mailbox_command' - unexpected unlock
> include/linux/spinlock.h:404:9: sparse: sparse: context imbalance in
'qla1280_bus_reset' - unexpected unlock
--
kernel/sched/wait.c: note: in included file (through include/linux/wait.h,
include/linux/pid.h, include/linux/sched.h, kernel/sched/sched.h):
> include/linux/spinlock.h:404:9: sparse: sparse: context imbalance
in 'do_wait_intr_irq' - unexpected unlock
--
kernel/locking/rtmutex.c:788:9: sparse: sparse: context imbalance in
'rt_mutex_adjust_prio_chain' - different lock contexts for basic block
> kernel/locking/rtmutex.c:999:9: sparse: sparse: context imbalance
in 'task_blocks_on_rt_mutex' - unexpected unlock
> kernel/locking/rtmutex.c:1110:9: sparse: sparse: context imbalance in
'remove_waiter' - unexpected unlock
kernel/locking/rtmutex.c:1190:17:
sparse: sparse: context imbalance in '__rt_mutex_slowlock' - unexpected unlock
--
> kernel/time/timer.c:1457:25: sparse: sparse: context imbalance in
'expire_timers' - unexpected unlock
--
drivers/base/power/runtime.c: note: in included file (through include/linux/wait.h,
include/linux/pid.h, include/linux/sched.h, ...):
> include/linux/spinlock.h:404:9: sparse: sparse: context imbalance
in '__pm_runtime_barrier' - unexpected unlock
--
drivers/mfd/ti_am335x_tscadc.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 'am335x_tscadc_need_adc' - unexpected unlock
#
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue locking/wip
git checkout 8e0c3933252fff31aaf97b37f660b1a3107debd2
vim +/_qla1280_wait_for_single_command +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(a)linutronix.de>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org