[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200601184552.23128-3-jbi.octave@gmail.com>
Date: Mon, 1 Jun 2020 19:45:49 +0100
From: Jules Irenge <jbi.octave@...il.com>
To: linux-kernel@...r.kernel.org
Cc: tglx@...utronix.de, paulmck@...nel.org, mingo@...hat.com,
boqun.feng@...il.com, Jules Irenge <jbi.octave@...il.com>,
Josh Triplett <josh@...htriplett.org>,
Steven Rostedt <rostedt@...dmis.org>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Lai Jiangshan <jiangshanlai@...il.com>,
Joel Fernandes <joel@...lfernandes.org>,
rcu@...r.kernel.org (open list:READ-COPY UPDATE (RCU))
Subject: [PATCH 2/5] rcu: replace 1 with true
Coccinelle reports a warning
WARNING: Assignment of 0/1 to bool variable
The root cause is the variable rcu_boot_ended of bool type is initialised with integer 1
Replacing 1 with true fixes the issue.
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
kernel/rcu/update.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c
index 28a8bdc5072f..c18ae0cca512 100644
--- a/kernel/rcu/update.c
+++ b/kernel/rcu/update.c
@@ -193,7 +193,7 @@ void rcu_end_inkernel_boot(void)
rcu_unexpedite_gp();
if (rcu_normal_after_boot)
WRITE_ONCE(rcu_normal, 1);
- rcu_boot_ended = 1;
+ rcu_boot_ended = true;
}
/*
--
2.18.2
Powered by blists - more mailing lists