rculist: Add brackets around cond argument in __list_check_rcu macro
[linux-2.6-microblaze.git] / include / linux / rculist.h
index 9f313e4..8214cdc 100644 (file)
@@ -60,9 +60,9 @@ static inline void INIT_LIST_HEAD_RCU(struct list_head *list)
 #define __list_check_rcu(dummy, cond, extra...)                                \
        ({                                                              \
        check_arg_count_one(extra);                                     \
-       RCU_LOCKDEP_WARN(!cond && !rcu_read_lock_any_held(),            \
+       RCU_LOCKDEP_WARN(!(cond) && !rcu_read_lock_any_held(),          \
                         "RCU-list traversed in non-reader section!");  \
-        })
+       })
 #else
 #define __list_check_rcu(dummy, cond, extra...)                                \
        ({ check_arg_count_one(extra); })