[PATCH tip/core/urgent 4/4] rcu: fix syntax error in rcu_dereference_check() example in comment

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul E. McKenney
Date: Thursday, April 8, 2010 - 10:47 pm

Need a logical "or" rather than a comma.

Suggested-by: Yong Zhang <yong.zhang@windriver.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
---
 include/linux/rcupdate.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h
index 6cdb176..b769184 100644
--- a/include/linux/rcupdate.h
+++ b/include/linux/rcupdate.h
@@ -217,7 +217,7 @@ static inline int rcu_read_lock_sched_held(void)
  * target struct:
  *
  *	bar = rcu_dereference_check(foo->bar, rcu_read_lock_held() ||
- *					      lockdep_is_held(&foo->lock),
+ *					      lockdep_is_held(&foo->lock) ||
  *					      atomic_read(&foo->usage) == 0);
  */
 #define rcu_dereference_check(p, c) \
-- 
1.7.0

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH tip/core/urgent] rcu: updates for RCU lockdep, Paul E. McKenney, (Thu Apr 8, 10:47 pm)
[PATCH tip/core/urgent 4/4] rcu: fix syntax error in rcu_d ..., Paul E. McKenney, (Thu Apr 8, 10:47 pm)
[PATCH tip/core/urgent] v2 rcu: updates for RCU lockdep, Paul E. McKenney, (Fri Apr 9, 3:38 pm)
[tip:core/urgent] rcu: Add rcu_access_pointer and rcu_dere ..., tip-bot for Paul E. ..., (Wed Apr 14, 8:00 am)
[tip:core/urgent] rcu: Better explain the condition parame ..., tip-bot for David Ho ..., (Wed Apr 14, 8:01 am)
[tip:core/urgent] rcu: Update docs for rcu_access_pointer ..., tip-bot for Paul E. ..., (Wed Apr 14, 8:01 am)