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 d469235b5ad1f03a141cd45dda9b57d4ad30c2f1..23eb76058b3e05d35d36635865494fe0ca11573d 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)) \
        {                                                               \