From 34dca3cc6e0b230c988b16117b967a094560f4ed Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 20 Sep 2011 12:21:40 -0400 Subject: [PATCH] Mark __tp_cb_data as possibly unused for backward compat API MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Thanks to Lluís Vilanova for proposing this. Signed-off-by: Mathieu Desnoyers --- include/ust/tracepoint.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ust/tracepoint.h b/include/ust/tracepoint.h index 9463e40..5e7f9d8 100644 --- a/include/ust/tracepoint.h +++ b/include/ust/tracepoint.h @@ -70,12 +70,13 @@ struct tracepoint { /* * 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); \ -- 2.39.5