From: kernel test robot <lkp@intel.com>
To: Frederic Weisbecker <frederic@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [frederic-dynticks:rcu/dev 2/5] kernel/rcu/tree_nocb.h:1157:7: warning: variable 'need_rcu_nocb_mask' set but not used
Date: Thu, 17 Feb 2022 08:48:38 +0800 [thread overview]
Message-ID: <202202170811.xZp85edb-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git rcu/dev
head: be4d4c3ba8c4ceeba9dc9df4de5451c7261161f3
commit: bdfa2dd80919bc4636fcf606cd21b606d361fd16 [2/5] rcu/nocb: Move rcu_nocb_is_setup to rcu_state
config: x86_64-randconfig-a015 (https://download.01.org/0day-ci/archive/20220217/202202170811.xZp85edb-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git/commit/?id=bdfa2dd80919bc4636fcf606cd21b606d361fd16
git remote add frederic-dynticks https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
git fetch --no-tags frederic-dynticks rcu/dev
git checkout bdfa2dd80919bc4636fcf606cd21b606d361fd16
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from kernel/rcu/tree.c:4858:
kernel/rcu/tree_nocb.h: In function 'rcu_init_nohz':
>> kernel/rcu/tree_nocb.h:1157:7: warning: variable 'need_rcu_nocb_mask' set but not used [-Wunused-but-set-variable]
1157 | bool need_rcu_nocb_mask = false;
| ^~~~~~~~~~~~~~~~~~
vim +/need_rcu_nocb_mask +1157 kernel/rcu/tree_nocb.h
dfcb27540213e8 Frederic Weisbecker 2021-05-19 1153
dfcb27540213e8 Frederic Weisbecker 2021-05-19 1154 void __init rcu_init_nohz(void)
dfcb27540213e8 Frederic Weisbecker 2021-05-19 1155 {
dfcb27540213e8 Frederic Weisbecker 2021-05-19 1156 int cpu;
dfcb27540213e8 Frederic Weisbecker 2021-05-19 @1157 bool need_rcu_nocb_mask = false;
dfcb27540213e8 Frederic Weisbecker 2021-05-19 1158 struct rcu_data *rdp;
dfcb27540213e8 Frederic Weisbecker 2021-05-19 1159
:::::: The code at line 1157 was first introduced by commit
:::::: dfcb27540213e8061ecffacd4bd8ed54a310a7b0 rcu/nocb: Start moving nocb code to its own plugin file
:::::: TO: Frederic Weisbecker <frederic@kernel.org>
:::::: CC: Paul E. McKenney <paulmck@kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-02-17 0:49 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=202202170811.xZp85edb-lkp@intel.com \
--to=lkp@intel.com \
--cc=frederic@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox