tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/wip
head: 583d7628d9cd70c1a64ec044d9d9922cfb70023b
commit: b291ac3eff40ae4b869c9d1902acc0af3190176c [10/11] lockdep: Only trace IRQ edges
config: parisc-randconfig-s032-20200820 (attached as .config)
compiler: hppa-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 b291ac3eff40ae4b869c9d1902acc0af3190176c
# 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=parisc
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/cmpxchg-local.h, arch/parisc/include/asm/cmpxchg.h, ...):
> arch/parisc/include/asm/irqflags.h:37:20: sparse: sparse: context
imbalance in 'ring_buffer_peek' - different lock contexts for basic block
> arch/parisc/include/asm/irqflags.h:37:20: sparse: sparse: context imbalance in
'ring_buffer_consume' - different lock contexts for basic block
> arch/parisc/include/asm/irqflags.h:37:20: sparse: sparse: context imbalance in
'ring_buffer_empty' - different lock contexts for basic block
> arch/parisc/include/asm/irqflags.h:37:20: 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 b291ac3eff40ae4b869c9d1902acc0af3190176c
vim +/ring_buffer_peek +37 arch/parisc/include/asm/irqflags.h
df9ee29270c11db David Howells 2010-10-07 36
df9ee29270c11db David Howells 2010-10-07 @37 static inline bool
arch_irqs_disabled_flags(unsigned long flags)
df9ee29270c11db David Howells 2010-10-07 38 {
df9ee29270c11db David Howells 2010-10-07 39 return (flags & PSW_I) == 0;
df9ee29270c11db David Howells 2010-10-07 40 }
df9ee29270c11db David Howells 2010-10-07 41
:::::: The code at line 37 was first introduced by commit
:::::: df9ee29270c11dba7d0fe0b83ce47a4d8e8d2101 Fix IRQ flag handling naming
:::::: TO: David Howells <dhowells(a)redhat.com>
:::::: CC: David Howells <dhowells(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org