From: Luis R. Rodriguez Date: Fri, 30 Mar 2012 23:44:31 +0000 (-0700) Subject: compat: fix warning on trace backport for 2.6.29 and older X-Git-Tag: compat-2012-07-02~1^2~41 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b15d934ec065f45f9ffd58184b6aee310ea4082c;p=~emulex%2Ffor-vlad%2Fold%2Fcompat.git compat: fix warning on trace backport for 2.6.29 and older The unregister callback returns void but we are returning something, fix that. Signed-off-by: Luis R. Rodriguez --- diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h index d469235..23eb760 100644 --- a/include/linux/tracepoint.h +++ b/include/linux/tracepoint.h @@ -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)) \ { \