All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/powerpc/include/asm/hw_irq.h:293:17: sparse: sparse: context imbalance in 'ring_buffer_peek' - different lock contexts for basic block
@ 2020-08-01 21:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-01 21:36 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3892 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Christophe Leroy <christophe.leroy@c-s.fr>
CC: Michael Ellerman <mpe@ellerman.id.au>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d52daa8620c65960e1ef882adc1f92061326bd7a
commit: b020aa9d1e875c1c91b1390acdf42320e7060d84 powerpc: cleanup hw_irq.h
date:   9 months ago
:::::: branch date: 4 hours ago
:::::: commit date: 9 months ago
config: powerpc-randconfig-s032-20200802 (attached as .config)
compiler: powerpc-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-115-g5fc204f2-dirty
        git checkout b020aa9d1e875c1c91b1390acdf42320e7060d84
        # 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=powerpc 

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 >>)

   kernel/trace/ring_buffer.c:696:32: sparse: sparse: incorrect type in return expression (different base types) @@     expected restricted __poll_t @@     got int @@
   kernel/trace/ring_buffer.c:696:32: sparse:     expected restricted __poll_t
   kernel/trace/ring_buffer.c:696:32: sparse:     got int
   kernel/trace/ring_buffer.c: note: in included file (through arch/powerpc/include/asm/irqflags.h, include/linux/irqflags.h, include/linux/spinlock.h, ...):
>> arch/powerpc/include/asm/hw_irq.h:293:17: sparse: sparse: context imbalance in 'ring_buffer_peek' - different lock contexts for basic block
>> arch/powerpc/include/asm/hw_irq.h:293:17: sparse: sparse: context imbalance in 'ring_buffer_consume' - different lock contexts for basic block
>> arch/powerpc/include/asm/hw_irq.h:293:17: sparse: sparse: context imbalance in 'ring_buffer_empty' - different lock contexts for basic block
>> arch/powerpc/include/asm/hw_irq.h:293:17: sparse: sparse: context imbalance in 'ring_buffer_empty_cpu' - different lock contexts for basic block

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b020aa9d1e875c1c91b1390acdf42320e7060d84
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout b020aa9d1e875c1c91b1390acdf42320e7060d84
vim +/ring_buffer_peek +293 arch/powerpc/include/asm/hw_irq.h

df9ee29270c11db arch/powerpc/include/asm/hw_irq.h David Howells    2010-10-07  287  
df9ee29270c11db arch/powerpc/include/asm/hw_irq.h David Howells    2010-10-07  288  static inline void arch_local_irq_restore(unsigned long flags)
df9ee29270c11db arch/powerpc/include/asm/hw_irq.h David Howells    2010-10-07  289  {
b020aa9d1e875c1 arch/powerpc/include/asm/hw_irq.h Christophe Leroy 2019-08-29  290  	if (IS_ENABLED(CONFIG_BOOKE))
b020aa9d1e875c1 arch/powerpc/include/asm/hw_irq.h Christophe Leroy 2019-08-29  291  		wrtee(flags);
b020aa9d1e875c1 arch/powerpc/include/asm/hw_irq.h Christophe Leroy 2019-08-29  292  	else
df9ee29270c11db arch/powerpc/include/asm/hw_irq.h David Howells    2010-10-07 @293  		mtmsr(flags);
df9ee29270c11db arch/powerpc/include/asm/hw_irq.h David Howells    2010-10-07  294  }
^1da177e4c3f415 include/asm-ppc64/hw_irq.h        Linus Torvalds   2005-04-16  295  

:::::: The code at line 293 was first introduced by commit
:::::: df9ee29270c11dba7d0fe0b83ce47a4d8e8d2101 Fix IRQ flag handling naming

:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: David Howells <dhowells@redhat.com>

---
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: 31447 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-01 21:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-01 21:36 arch/powerpc/include/asm/hw_irq.h:293:17: sparse: sparse: context imbalance in 'ring_buffer_peek' - different lock contexts for basic block 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.