All of lore.kernel.org
 help / color / mirror / Atom feed
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: Thu, 18 Mar 2021 04:31:08 +0800	[thread overview]
Message-ID: <202103180406.ibN0vHJe-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2840 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:   1df27313f50a57497c1faeb6a6ae4ca939c85a7d
commit: 0ff7c3b331276f584bde3ae9a16bacd8fa3d01e6 riscv: Use text_mutex instead of patch_lock
date:   10 months ago
:::::: branch date: 27 hours ago
:::::: commit date: 10 months ago
config: riscv-randconfig-s032-20210318 (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-277-gc089cd2d-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

10626c32e3827bc Alan Kao 2017-12-18  13  
c15ac4fd60d5ffd Alan Kao 2018-02-13  14  #ifdef CONFIG_DYNAMIC_FTRACE
0ff7c3b331276f5 Zong Li  2020-04-21 @15  int ftrace_arch_code_modify_prepare(void) __acquires(&text_mutex)
0ff7c3b331276f5 Zong Li  2020-04-21  16  {
0ff7c3b331276f5 Zong Li  2020-04-21  17  	mutex_lock(&text_mutex);
0ff7c3b331276f5 Zong Li  2020-04-21  18  	return 0;
0ff7c3b331276f5 Zong Li  2020-04-21  19  }
0ff7c3b331276f5 Zong Li  2020-04-21  20  
0ff7c3b331276f5 Zong Li  2020-04-21 @21  int ftrace_arch_code_modify_post_process(void) __releases(&text_mutex)
0ff7c3b331276f5 Zong Li  2020-04-21  22  {
0ff7c3b331276f5 Zong Li  2020-04-21  23  	mutex_unlock(&text_mutex);
0ff7c3b331276f5 Zong Li  2020-04-21  24  	return 0;
0ff7c3b331276f5 Zong Li  2020-04-21  25  }
0ff7c3b331276f5 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: 21065 bytes --]

             reply	other threads:[~2021-03-17 20:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-17 20:31 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
2020-10-13  9:39 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=202103180406.ibN0vHJe-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.