summaryrefslogtreecommitdiffstats
path: root/kernel/rcu
diff options
context:
space:
mode:
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>2021-02-24 16:30:29 +0800
committerPaul E. McKenney <paulmck@kernel.org>2021-03-15 13:54:42 -0700
commit9640dcab974fb7fba086d30fd9f0ec08b8876d12 (patch)
tree86648781c97aacfbb6708b2e680fbef305714661 /kernel/rcu
parent55adc3e1c82a25e99e9efef4f2b14b8b4806918a (diff)
downloadlinux-9640dcab974fb7fba086d30fd9f0ec08b8876d12.tar.gz
linux-9640dcab974fb7fba086d30fd9f0ec08b8876d12.tar.bz2
linux-9640dcab974fb7fba086d30fd9f0ec08b8876d12.zip
rcu: Make nocb_nobypass_lim_per_jiffy static
RCU triggerse the following sparse warning: kernel/rcu/tree_plugin.h:1497:5: warning: symbol 'nocb_nobypass_lim_per_jiffy' was not declared. Should it be static? This commit therefore makes this variable static. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Reported-by: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/tree_plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h
index 93d393831adc..a1a17adeae54 100644
--- a/kernel/rcu/tree_plugin.h
+++ b/kernel/rcu/tree_plugin.h
@@ -1556,7 +1556,7 @@ early_param("rcu_nocb_poll", parse_rcu_nocb_poll);
* After all, the main point of bypassing is to avoid lock contention
* on ->nocb_lock, which only can happen at high call_rcu() rates.
*/
-int nocb_nobypass_lim_per_jiffy = 16 * 1000 / HZ;
+static int nocb_nobypass_lim_per_jiffy = 16 * 1000 / HZ;
module_param(nocb_nobypass_lim_per_jiffy, int, 0);
/*