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: s390-randconfig-s031-20200819 (attached as .config)
compiler: s390-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-183-gaa6ede3b-dirty
git checkout 8e0c3933252fff31aaf97b37f660b1a3107debd2
# 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=s390
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 >>)
kernel/trace/ring_buffer.c:923:32: sparse: sparse: incorrect type in return expression
(different base types) @@ expected restricted __poll_t @@ got int @@
kernel/trace/ring_buffer.c:923:32: sparse: expected restricted __poll_t
kernel/trace/ring_buffer.c:923:32: sparse: got int
kernel/trace/ring_buffer.c: note: in included file (through include/linux/irqflags.h,
include/linux/spinlock.h, include/linux/mmzone.h, ...):
> arch/s390/include/asm/irqflags.h:68:28: sparse: sparse: context
imbalance in 'ring_buffer_peek' - different lock contexts for basic block
> arch/s390/include/asm/irqflags.h:68:28: sparse: sparse: context imbalance in
'ring_buffer_consume' - different lock contexts for basic block
> arch/s390/include/asm/irqflags.h:68:28: sparse: sparse: context imbalance in
'ring_buffer_empty' - different lock contexts for basic block
> arch/s390/include/asm/irqflags.h:68:28: sparse: sparse: context imbalance in
'ring_buffer_empty_cpu' - different lock contexts for basic block
#
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 +/ring_buffer_peek +68 arch/s390/include/asm/irqflags.h
df9ee29270c11d arch/s390/include/asm/irqflags.h David Howells 2010-10-07 67
f433c4aec9999d arch/s390/include/asm/irqflags.h Steven Rostedt 2011-07-24 @68
static inline notrace bool arch_irqs_disabled_flags(unsigned long flags)
1f194a4c393103 include/asm-s390/irqflags.h Heiko Carstens 2006-07-03 69 {
204ee2c5643199 arch/s390/include/asm/irqflags.h Christian Borntraeger 2016-01-11 70
return !(flags & ARCH_IRQ_ENABLED);
1f194a4c393103 include/asm-s390/irqflags.h Heiko Carstens 2006-07-03 71 }
1f194a4c393103 include/asm-s390/irqflags.h Heiko Carstens 2006-07-03 72
:::::: The code at line 68 was first introduced by commit
:::::: f433c4aec9999d1bf2ed8c328196f3b0ad5f75db [S390] irqs: Do not trace
arch_local_{*,irq_*} functions
:::::: TO: Steven Rostedt <srostedt(a)redhat.com>
:::::: CC: Martin Schwidefsky <schwidefsky(a)de.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org