All of lore.kernel.org
 help / color / mirror / Atom feed
* [tip: core/rcu] rcu/rcutorture: Replace 0 with false
@ 2020-07-31  9:22 tip-bot2 for Jules Irenge
  0 siblings, 0 replies; only message in thread
From: tip-bot2 for Jules Irenge @ 2020-07-31  9:22 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Jules Irenge, Paul E. McKenney, x86, LKML

The following commit has been merged into the core/rcu branch of tip:

Commit-ID:     8f43d5911b38f00dfa46169dcb1feb1e101dd906
Gitweb:        https://git.kernel.org/tip/8f43d5911b38f00dfa46169dcb1feb1e101dd906
Author:        Jules Irenge <jbi.octave@gmail.com>
AuthorDate:    Mon, 01 Jun 2020 19:45:48 +01:00
Committer:     Paul E. McKenney <paulmck@kernel.org>
CommitterDate: Mon, 29 Jun 2020 12:01:44 -07:00

rcu/rcutorture: Replace 0 with false

Coccinelle reports a warning

WARNING: Assignment of 0/1 to bool variable

The root cause is that the variable lastphase is a bool, but is
initialised with integer 0.  This commit therefore replaces the 0 with
a false.

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
---
 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 5911207..37455a1 100644
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -2185,7 +2185,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;
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-31  9:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31  9:22 [tip: core/rcu] rcu/rcutorture: Replace 0 with false tip-bot2 for Jules Irenge

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.