From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: arch/riscv/kernel/ftrace.c:15:5: sparse: sparse: context imbalance in 'ftrace_arch_code_modify_prepare' - wrong count at exit
Date: Tue, 13 Oct 2020 17:39:14 +0800 [thread overview]
Message-ID: <202010131711.e1uPFY5f-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2815 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Zong Li <zong.li@sifive.com>
CC: Palmer Dabbelt <palmerdabbelt@google.com>
CC: Masami Hiramatsu <mhiramat@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 865c50e1d279671728c2936cb7680eb89355eeea
commit: 0ff7c3b331276f584bde3ae9a16bacd8fa3d01e6 riscv: Use text_mutex instead of patch_lock
date: 5 months ago
:::::: branch date: 8 hours ago
:::::: commit date: 5 months ago
config: riscv-randconfig-s032-20201013 (attached as .config)
compiler: riscv64-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-rc1-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0ff7c3b331276f584bde3ae9a16bacd8fa3d01e6
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0ff7c3b331276f584bde3ae9a16bacd8fa3d01e6
# 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=riscv
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 >>)"
>> arch/riscv/kernel/ftrace.c:15:5: sparse: sparse: context imbalance in 'ftrace_arch_code_modify_prepare' - wrong count at exit
>> arch/riscv/kernel/ftrace.c:21:5: sparse: sparse: context imbalance in 'ftrace_arch_code_modify_post_process' - wrong count at exit
vim +/ftrace_arch_code_modify_prepare +15 arch/riscv/kernel/ftrace.c
10626c32e3827b Alan Kao 2017-12-18 13
c15ac4fd60d5ff Alan Kao 2018-02-13 14 #ifdef CONFIG_DYNAMIC_FTRACE
0ff7c3b331276f Zong Li 2020-04-21 @15 int ftrace_arch_code_modify_prepare(void) __acquires(&text_mutex)
0ff7c3b331276f Zong Li 2020-04-21 16 {
0ff7c3b331276f Zong Li 2020-04-21 17 mutex_lock(&text_mutex);
0ff7c3b331276f Zong Li 2020-04-21 18 return 0;
0ff7c3b331276f Zong Li 2020-04-21 19 }
0ff7c3b331276f Zong Li 2020-04-21 20
0ff7c3b331276f Zong Li 2020-04-21 @21 int ftrace_arch_code_modify_post_process(void) __releases(&text_mutex)
0ff7c3b331276f Zong Li 2020-04-21 22 {
0ff7c3b331276f Zong Li 2020-04-21 23 mutex_unlock(&text_mutex);
0ff7c3b331276f Zong Li 2020-04-21 24 return 0;
0ff7c3b331276f Zong Li 2020-04-21 25 }
0ff7c3b331276f Zong Li 2020-04-21 26
---
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: 23944 bytes --]
next reply other threads:[~2020-10-13 9:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-13 9:39 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-04-03 21:32 arch/riscv/kernel/ftrace.c:15:5: sparse: sparse: context imbalance in 'ftrace_arch_code_modify_prepare' - wrong count at exit kernel test robot
2021-03-17 20:31 kernel test robot
2020-09-12 10:37 kernel test robot
2020-08-11 2:17 kernel test robot
2020-08-11 2:17 ` kernel test robot
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=202010131711.e1uPFY5f-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.