[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200601184552.23128-2-jbi.octave@gmail.com>
Date: Mon, 1 Jun 2020 19:45:48 +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>,
Davidlohr Bueso <dave@...olabs.net>,
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 1/5] rcu/rcutorture: replace 0 with false
Coccinelle reports a warning
WARNING: Assignment of 0/1 to bool variable
The root cause is the variable lastphase is of bool type is initialised with integer 0
Replacing 0 with false fixes the issue.
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
kernel/rcu/rcutorture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c
index 5453bd557f43..a082bc402f9b 100644
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -2065,7 +2065,7 @@ static void rcu_torture_barrier1cb(void *rcu_void)
static int rcu_torture_barrier_cbs(void *arg)
{
long myid = (long)arg;
- bool lastphase = 0;
+ bool lastphase = false;
bool newphase;
struct rcu_head rcu;
--
2.18.2
Powered by blists - more mailing lists