Skip to content

Commit da44cd6

Browse files
irengepaulmckrcu
authored andcommitted
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 <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent a66dbda commit da44cd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/rcu/tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static struct rcu_state rcu_state = {
113113
static bool dump_tree;
114114
module_param(dump_tree, bool, 0444);
115115
/* By default, use RCU_SOFTIRQ instead of rcuc kthreads. */
116-
static bool use_softirq = 1;
116+
static bool use_softirq = true;
117117
module_param(use_softirq, bool, 0444);
118118
/* Control rcu_node-tree auto-balancing at boot time. */
119119
static bool rcu_fanout_exact;

0 commit comments

Comments
 (0)