All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/powerpc/include/asm/hw_irq.h:293:17: sparse: sparse: context imbalance in 'serial8250_console_write' - wrong count at exit
@ 2020-11-02  4:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-02  4:19 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3652 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:   3cea11cd5e3b00d91caf0b4730194039b45c5891
commit: b020aa9d1e875c1c91b1390acdf42320e7060d84 powerpc: cleanup hw_irq.h
date:   12 months ago
:::::: branch date: 6 hours ago
:::::: commit date: 12 months ago
config: powerpc64-randconfig-s032-20201031 (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.3-76-gf680124b-dirty
        # 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 fetch --no-tags linus master
        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=powerpc64 

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 >>)"
   drivers/tty/serial/8250/8250_port.c: note: in included file (through include/linux/io.h, include/linux/irq.h, arch/powerpc/include/asm/hardirq.h, ...):
   arch/powerpc/include/asm/io.h:149:1: sparse: sparse: dereference of noderef expression
   arch/powerpc/include/asm/io.h:144:1: sparse: sparse: dereference of noderef expression
   arch/powerpc/include/asm/io.h:150:1: sparse: sparse: dereference of noderef expression
   arch/powerpc/include/asm/io.h:145:1: sparse: sparse: dereference of noderef expression
   drivers/tty/serial/8250/8250_port.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 'serial8250_console_write' - wrong count at exit

vim +/serial8250_console_write +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: 29166 bytes --]

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

only message in thread, other threads:[~2020-11-02  4:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-02  4:19 arch/powerpc/include/asm/hw_irq.h:293:17: sparse: sparse: context imbalance in 'serial8250_console_write' - wrong count at exit 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.