From 67d0d222c6dfda29d5464d8d567277c4a1be7844 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 30 Apr 2010 12:59:59 -0400 Subject: [PATCH] --- yaml --- r: 199132 b: refs/heads/master c: 53da59aa6dd881fd0bbdd058a8a299d90ce9dd1d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/tracepoint.h | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 6bb580b06b89..5ab868c3b235 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8f0820183056ad26dabc0202115848a92f1143fc +refs/heads/master: 53da59aa6dd881fd0bbdd058a8a299d90ce9dd1d diff --git a/trunk/include/linux/tracepoint.h b/trunk/include/linux/tracepoint.h index 1d85f9a6a199..8d5e4f6d96d0 100644 --- a/trunk/include/linux/tracepoint.h +++ b/trunk/include/linux/tracepoint.h @@ -137,9 +137,11 @@ static inline void tracepoint_update_probe_range(struct tracepoint *begin, static inline int unregister_trace_##name(void (*probe)(proto)) \ { \ return tracepoint_probe_unregister(#name, (void *)probe);\ + } \ + static inline void check_trace_callback_type_##name(void (*cb)(proto)) \ + { \ } - #define DEFINE_TRACE_FN(name, reg, unreg) \ static const char __tpstrtab_##name[] \ __attribute__((section("__tracepoints_strings"))) = #name; \ @@ -168,6 +170,9 @@ static inline void tracepoint_update_probe_range(struct tracepoint *begin, static inline int unregister_trace_##name(void (*probe)(proto)) \ { \ return -ENOSYS; \ + } \ + static inline void check_trace_callback_type_##name(void (*cb)(proto)) \ + { \ } #define DEFINE_TRACE_FN(name, reg, unreg)