aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-10-14 12:38:19 +0100
committerMark Brown <broonie@linaro.org>2013-10-14 14:04:39 +0100
commit6adb80d9eccf87c323abe29e0e022294a054a86e (patch)
tree4bdfb32f8bfcc03adde80e79ef25522de22e1549
parentb574d25f35fb523c471535299ccab2bc7f6ed3ea (diff)
downloadvexpress-lsk-6adb80d9eccf87c323abe29e0e022294a054a86e.tar.gz
smp: Don't use typedef to work around compiler issue with tracepoints
Having the typedef in place for the tracepoints causes compiler crashes in some situations. Just using void * directly avoids triggering the issue and should have no effect on the trace. Signed-off-by: Mark Brown <broonie@linaro.org> Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
-rw-r--r--include/trace/events/smp.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/trace/events/smp.h b/include/trace/events/smp.h
index c8abfd74472..da0baf27a39 100644
--- a/include/trace/events/smp.h
+++ b/include/trace/events/smp.h
@@ -5,11 +5,10 @@
#define _TRACE_SMP_H
#include <linux/tracepoint.h>
-typedef void (*__smp_call_func_t)(void *info);
DECLARE_EVENT_CLASS(smp_call_class,
- TP_PROTO(__smp_call_func_t fnc),
+ TP_PROTO(void * fnc),
TP_ARGS(fnc),
@@ -35,7 +34,7 @@ DECLARE_EVENT_CLASS(smp_call_class,
*/
DEFINE_EVENT(smp_call_class, smp_call_func_entry,
- TP_PROTO(__smp_call_func_t fnc),
+ TP_PROTO(void * fnc),
TP_ARGS(fnc)
);
@@ -51,7 +50,7 @@ DEFINE_EVENT(smp_call_class, smp_call_func_entry,
*/
DEFINE_EVENT(smp_call_class, smp_call_func_exit,
- TP_PROTO(__smp_call_func_t fnc),
+ TP_PROTO(void * fnc),
TP_ARGS(fnc)
);
@@ -67,7 +66,7 @@ DEFINE_EVENT(smp_call_class, smp_call_func_exit,
*/
TRACE_EVENT(smp_call_func_send,
- TP_PROTO(__smp_call_func_t func, int dest),
+ TP_PROTO(void * func, int dest),
TP_ARGS(func, dest),