Commit da44cd6c authored by Jules Irenge's avatar Jules Irenge Committed by Paul E. McKenney

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: default avatarJules Irenge <jbi.octave@gmail.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent a66dbda7
...@@ -113,7 +113,7 @@ static struct rcu_state rcu_state = { ...@@ -113,7 +113,7 @@ static struct rcu_state rcu_state = {
static bool dump_tree; static bool dump_tree;
module_param(dump_tree, bool, 0444); module_param(dump_tree, bool, 0444);
/* By default, use RCU_SOFTIRQ instead of rcuc kthreads. */ /* 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); module_param(use_softirq, bool, 0444);
/* Control rcu_node-tree auto-balancing at boot time. */ /* Control rcu_node-tree auto-balancing at boot time. */
static bool rcu_fanout_exact; static bool rcu_fanout_exact;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment