projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d29e0b2
)
rcu: Replace 1 with true
author
Jules Irenge
<jbi.octave@gmail.com>
Mon, 1 Jun 2020 18:45:49 +0000
(19:45 +0100)
committer
Paul E. McKenney
<paulmck@kernel.org>
Mon, 29 Jun 2020 18:58:51 +0000
(11:58 -0700)
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 1. This commit therefore replaces the 1 with
a true.
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/update.c
patch
|
blob
|
history
diff --git
a/kernel/rcu/update.c
b/kernel/rcu/update.c
index ca17b771ad60aac4a4d9b763677ba14e3218b2cb..a0ba8858dd3583b27eb35a5a7e7adaa285a5efbc 100644
(file)
--- a/
kernel/rcu/update.c
+++ b/
kernel/rcu/update.c
@@
-207,7
+207,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
;
}
/*