Messages in this thread Patch in this message | | | From | "Paul E. McKenney" <> | Subject | [PATCH tip/core/urgent 4/4] rcu: fix syntax error in rcu_dereference_check() example in comment | Date | Thu, 8 Apr 2010 22:47:22 -0700 |
| |
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
| |