All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: arch/powerpc/include/asm/hw_irq.h:293:17: sparse: sparse: context imbalance in 'serial8250_console_write' - wrong count at exit
Date: Mon, 02 Nov 2020 12:19:24 +0800	[thread overview]
Message-ID: <202011021216.q87dS6II-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2020-11-02  4:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202011021216.q87dS6II-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.