summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree.c
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-03-30 02:24:48 +0100
committerPaul E. McKenney <paulmck@kernel.org>2020-04-27 11:01:16 -0700
commitda44cd6c8e88b6da3d5277d0e7b0e4d38faf4532 (patch)
treea9d35875e4bf3391851e528f9f926ed49a312794 /kernel/rcu/tree.c
parenta66dbda7893f48b97d7406ae42fa29190aa672a0 (diff)
downloadlinux-da44cd6c8e88b6da3d5277d0e7b0e4d38faf4532.tar.bz2
rcu: Replace 1 by true
Coccinelle reports a warning at use_softirq declaration WARNING: Assignment of 0/1 to bool variable The root cause is use_softirq a variable of bool type is initialised with the integer 1 Replacing 1 with value true solve the issue. Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/tree.c')
-rw-r--r--kernel/rcu/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 183b9cf33f50..940c62acd14a 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -113,7 +113,7 @@ static struct rcu_state rcu_state = {
static bool dump_tree;
module_param(dump_tree, bool, 0444);
/* By default, use RCU_SOFTIRQ instead of rcuc kthreads. */
-static bool use_softirq = 1;
+static bool use_softirq = true;
module_param(use_softirq, bool, 0444);
/* Control rcu_node-tree auto-balancing at boot time. */
static bool rcu_fanout_exact;