[RFC 1/3] Revert "tracepoint: Use __idx instead of idx in DO_TRACE macro to make it unique"
From: Joel Fernandes (Google)
Date: Fri Feb 07 2020 - 15:57:16 EST
This reverts commit 0c7a52e4d4b5c4d35b31f3c3ad32af814f1bf491.
Signed-off-by: Joel Fernandes (Google) <joel@xxxxxxxxxxxxxxxxx>
---
include/linux/tracepoint.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index 1fb11daa5c533..59463c90fdc3d 100644
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@ -164,7 +164,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
struct tracepoint_func *it_func_ptr; \
void *it_func; \
void *__data; \
- int __maybe_unused __idx = 0; \
+ int __maybe_unused idx = 0; \
\
if (!(cond)) \
return; \
@@ -180,7 +180,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
* doesn't work from the idle path. \
*/ \
if (rcuidle) { \
- __idx = srcu_read_lock_notrace(&tracepoint_srcu);\
+ idx = srcu_read_lock_notrace(&tracepoint_srcu); \
rcu_irq_enter_irqson(); \
} \
\
@@ -196,7 +196,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
\
if (rcuidle) { \
rcu_irq_exit_irqson(); \
- srcu_read_unlock_notrace(&tracepoint_srcu, __idx);\
+ srcu_read_unlock_notrace(&tracepoint_srcu, idx);\
} \
\
preempt_enable_notrace(); \
--
2.25.0.341.g760bfbb309-goog