mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pranith Kumar <bobby.prani@gmail.com>
To: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
	Josh Triplett <josh@joshtriplett.org>,
	linux-kernel@vger.kernel.org (open list:READ-COPY UPDATE...)
Subject: [PATCH 5/9] rcu: use true/false for return in __call_rcu_nocb()
Date: Tue,  8 Jul 2014 18:26:14 -0400	[thread overview]
Message-ID: <1404858378-23806-6-git-send-email-bobby.prani@gmail.com> (raw)
In-Reply-To: <1404858378-23806-1-git-send-email-bobby.prani@gmail.com>

return true/false instead of 0/1 in __call_rcu_nocb() as this returns a bool type

Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
---
 kernel/rcu/tree_plugin.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h
index 6c1feee..9f119f4 100644
--- a/kernel/rcu/tree_plugin.h
+++ b/kernel/rcu/tree_plugin.h
@@ -2132,7 +2132,7 @@ static bool __call_rcu_nocb(struct rcu_data *rdp, struct rcu_head *rhp,
 {
 
 	if (!rcu_is_nocb_cpu(rdp->cpu))
-		return 0;
+		return false;
 	__call_rcu_nocb_enqueue(rdp, rhp, &rhp->next, 1, lazy, flags);
 	if (__is_kfree_rcu_offset((unsigned long)rhp->func))
 		trace_rcu_kfree_callback(rdp->rsp->name, rhp,
@@ -2143,7 +2143,7 @@ static bool __call_rcu_nocb(struct rcu_data *rdp, struct rcu_head *rhp,
 		trace_rcu_callback(rdp->rsp->name, rhp,
 				   -atomic_long_read(&rdp->nocb_q_count_lazy),
 				   -atomic_long_read(&rdp->nocb_q_count));
-	return 1;
+	return true;
 }
 
 /*
-- 
1.9.1


  parent reply	other threads:[~2014-07-08 22:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1404858378-23806-1-git-send-email-bobby.prani@gmail.com>
2014-07-08 22:26 ` [PATCH 1/9] rcu: fix sparse warning about rcu_batches_completed_preempt() being non-static Pranith Kumar
2014-07-08 22:26 ` [PATCH 2/9] rcu: use bool type for return value in rcu_is_watching() Pranith Kumar
2014-07-08 22:26 ` [PATCH 3/9] rcu: Fix a sparse warning about boost_mutex being non-static Pranith Kumar
2014-07-08 22:26 ` [PATCH 4/9] rcu: return bool type for rcu_try_advance_all_cbs() Pranith Kumar
2014-07-08 22:26 ` Pranith Kumar [this message]
2014-07-08 22:26 ` [PATCH 6/9] rcu: use true/false for return in rcu_nocb_adopt_orphan_cbs() Pranith Kumar
2014-07-08 22:26 ` [PATCH 7/9] rcu: use false for return in __call_rcu_nocb() Pranith Kumar
2014-07-08 22:26 ` [PATCH 8/9] rcu: return false instead of 0 in rcu_nocb_adopt_orphan_cbs() Pranith Kumar
2014-07-08 22:26 ` [PATCH 9/9] rcu: return bool type in rcu_lockdep_current_cpu_online() Pranith Kumar
2014-07-08 22:32 ` [PATCH 0/9] rcu: trivial sparse and return type fixes for rcu Pranith Kumar
2014-07-08 22:48   ` Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1404858378-23806-6-git-send-email-bobby.prani@gmail.com \
    --to=bobby.prani@gmail.com \
    --cc=josh@joshtriplett.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmck@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome