Thanks to LluĂs Vilanova for proposing this.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
/*
* it_func[0] is never NULL because there is at least one element in the array
* when the array itself is non NULL.
+ * __attribute__((unused)) is for backward compatibility API.
*/
#define __DO_TRACE(tp, proto, args) \
do { \
struct tracepoint_probe *__tp_it_probe_ptr; \
void *__tp_it_func; \
- void *__tp_cb_data; \
+ void *__tp_cb_data __attribute__((unused)); \
\
rcu_read_lock(); \
__tp_it_probe_ptr = rcu_dereference((tp)->probes); \