From: kernel test robot <lkp@intel.com>
To: Paolo Abeni <pabeni@redhat.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Mat Martineau <mathew.j.martineau@linux.intel.com>
Subject: arch/sh/include/asm/bitops-op32.h:39:17: sparse: sparse: context imbalance in 'mptcp_sk_clone' - unexpected unlock
Date: Fri, 7 Aug 2020 17:54:23 +0800 [thread overview]
Message-ID: <202008071719.dDok0E4T%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2935 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 86cfccb66937dd6cbf26ed619958b9e587e6a115
commit: 2c5ebd001d4f0c64a2dfda94eb1d9b31a8863c8d mptcp: refactor token container
date: 6 weeks ago
config: sh-randconfig-s031-20200807 (attached as .config)
compiler: sh4-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-118-ge1578773-dirty
git checkout 2c5ebd001d4f0c64a2dfda94eb1d9b31a8863c8d
# 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=sh
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 >>)
net/mptcp/protocol.c: note: in included file (through arch/sh/include/asm/bitops.h, include/linux/bitops.h, include/linux/kernel.h):
>> arch/sh/include/asm/bitops-op32.h:39:17: sparse: sparse: context imbalance in 'mptcp_sk_clone' - unexpected unlock
vim +/mptcp_sk_clone +39 arch/sh/include/asm/bitops-op32.h
0d5bbe0bc2583c Paul Mundt 2008-11-25 35
0d5bbe0bc2583c Paul Mundt 2008-11-25 36 static inline void __clear_bit(int nr, volatile unsigned long *addr)
0d5bbe0bc2583c Paul Mundt 2008-11-25 37 {
e3c0f6f3fbdaca Masahiro Yamada 2019-07-23 38 if (__builtin_constant_p(nr)) {
0d5bbe0bc2583c Paul Mundt 2008-11-25 @39 __asm__ __volatile__ (
0d5bbe0bc2583c Paul Mundt 2008-11-25 40 "bclr.b %1, @(%O2,%0) ! __clear_bit\n\t"
0d5bbe0bc2583c Paul Mundt 2008-11-25 41 : "+r" (addr)
0d5bbe0bc2583c Paul Mundt 2008-11-25 42 : "i" (BYTE_OFFSET(nr)),
0d5bbe0bc2583c Paul Mundt 2008-11-25 43 "i" (BYTE_NUMBER(nr))
0d5bbe0bc2583c Paul Mundt 2008-11-25 44 : "t", "memory"
0d5bbe0bc2583c Paul Mundt 2008-11-25 45 );
0d5bbe0bc2583c Paul Mundt 2008-11-25 46 } else {
0d5bbe0bc2583c Paul Mundt 2008-11-25 47 unsigned long mask = BIT_MASK(nr);
0d5bbe0bc2583c Paul Mundt 2008-11-25 48 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
0d5bbe0bc2583c Paul Mundt 2008-11-25 49
0d5bbe0bc2583c Paul Mundt 2008-11-25 50 *p &= ~mask;
0d5bbe0bc2583c Paul Mundt 2008-11-25 51 }
0d5bbe0bc2583c Paul Mundt 2008-11-25 52 }
0d5bbe0bc2583c Paul Mundt 2008-11-25 53
:::::: The code at line 39 was first introduced by commit
:::::: 0d5bbe0bc2583c4dc06ea00adccf07c3acd1481d sh: Provide optimized non-atomic bitops for SH-2A.
:::::: TO: Paul Mundt <lethal@linux-sh.org>
:::::: CC: Paul Mundt <lethal@linux-sh.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 25875 bytes --]
reply other threads:[~2020-08-07 9:59 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=202008071719.dDok0E4T%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mathew.j.martineau@linux.intel.com \
--cc=pabeni@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®