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: microblaze-randconfig-s031-20200818 (attached as .config)
compiler: microblaze-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=microblaze
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/asm-generic/bitops.h, arch/microblaze/include/generated/asm/bitops.h, ...):
> arch/microblaze/include/asm/irqflags.h:109:28: sparse: sparse:
context imbalance in 'ring_buffer_peek' - different lock contexts for basic block
> arch/microblaze/include/asm/irqflags.h:109:28: sparse: sparse: context imbalance in
'ring_buffer_consume' - different lock contexts for basic block
> arch/microblaze/include/asm/irqflags.h:109:28: sparse: sparse: context imbalance in
'ring_buffer_empty' - different lock contexts for basic block
> arch/microblaze/include/asm/irqflags.h:109: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 +109 arch/microblaze/include/asm/irqflags.h
df9ee29270c11db David Howells 2010-10-07 108
a2f526994e92ea5 Steven Rostedt 2011-07-01 @109 static inline notrace bool
arch_irqs_disabled_flags(unsigned long flags)
df9ee29270c11db David Howells 2010-10-07 110 {
df9ee29270c11db David Howells 2010-10-07 111 return (flags & MSR_IE) == 0;
df9ee29270c11db David Howells 2010-10-07 112 }
df9ee29270c11db David Howells 2010-10-07 113
:::::: The code at line 109 was first introduced by commit
:::::: a2f526994e92ea54be181efccda261c4b1a6ae8d microblaze/irqs: Do not trace
arch_local_{*,irq_*} functions
:::::: TO: Steven Rostedt <srostedt(a)redhat.com>
:::::: CC: Michal Simek <monstr(a)monstr.eu>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org