projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ced8d6f
)
rcu: Make sync_rcu_preempt_exp_done() return bool
author
Paul E. McKenney
<paulmck@linux.vnet.ibm.com>
Tue, 18 Apr 2017 16:53:07 +0000
(09:53 -0700)
committer
Paul E. McKenney
<paulmck@linux.vnet.ibm.com>
Thu, 8 Jun 2017 15:25:27 +0000
(08:25 -0700)
The sync_rcu_preempt_exp_done() function returns a logical expression,
but its return type is nevertheless int. This commit therefore changes
the return type to bool.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree_exp.h
patch
|
blob
|
history
diff --git
a/kernel/rcu/tree_exp.h
b/kernel/rcu/tree_exp.h
index
e513b4a
..
dd21ca4
100644
(file)
--- a/
kernel/rcu/tree_exp.h
+++ b/
kernel/rcu/tree_exp.h
@@
-147,7
+147,7
@@
static void __maybe_unused sync_exp_reset_tree(struct rcu_state *rsp)
*
* Caller must hold the rcu_state's exp_mutex.
*/
-static
int
sync_rcu_preempt_exp_done(struct rcu_node *rnp)
+static
bool
sync_rcu_preempt_exp_done(struct rcu_node *rnp)
{
return rnp->exp_tasks == NULL &&
READ_ONCE(rnp->expmask) == 0;