compat: fix warning on trace backport for 2.6.29 and older
authorLuis R. Rodriguez <mcgrof@frijolero.org>
Fri, 30 Mar 2012 23:44:31 +0000 (16:44 -0700)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Fri, 30 Mar 2012 23:44:31 +0000 (16:44 -0700)
The unregister callback returns void but we are returning something,
fix that.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
include/linux/tracepoint.h

index d469235..23eb760 100644 (file)
@@ -97,7 +97,6 @@ DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
        static inline void                                              \
        unregister_trace_##name(void (*probe)(proto))                   \
        {                                                               \
-               return -ENOSYS;                                         \
        }                                                               \
        static inline void check_trace_callback_type_##name(void (*cb)(data_proto)) \
        {                                                               \