tracepoints: Use WARN() and not WARN_ON() for warnings
[linux-2.6-block.git] / include / linux / tracepoint.h
index 88c0ba623ee6bf5b59cdf0521961ab46c67e2829..689b6d71590e99db90f6bd4da8615b092c1c6cbc 100644 (file)
@@ -199,7 +199,8 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
                if (!(cond))                                            \
                        return;                                         \
                                                                        \
-               if (WARN_ON_ONCE(RCUIDLE_COND(rcuidle)))                \
+               if (WARN_ONCE(RCUIDLE_COND(rcuidle),                    \
+                             "Bad RCU usage for tracepoint"))          \
                        return;                                         \
                                                                        \
                /* keep srcu and sched-rcu usage consistent */          \
@@ -259,7 +260,8 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
                                TP_ARGS(args),                          \
                                TP_CONDITION(cond), 0);                 \
                if (IS_ENABLED(CONFIG_LOCKDEP) && (cond)) {             \
-                       WARN_ON_ONCE(!rcu_is_watching());               \
+                       WARN_ONCE(!rcu_is_watching(),                   \
+                                 "RCU not watching for tracepoint");   \
                }                                                       \
        }                                                               \
        __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args),          \