--- zzzz-none-000/linux-2.6.32.61/include/linux/tracepoint.h 2013-06-10 09:43:48.000000000 +0000 +++ ar9-7330-650/linux-2.6.32.61/include/linux/tracepoint.h 2010-07-16 10:24:07.000000000 +0000 @@ -101,15 +101,15 @@ #else /* !CONFIG_TRACEPOINTS */ #define DECLARE_TRACE(name, proto, args) \ - static inline void _do_trace_##name(struct tracepoint *tp, proto) \ + static inline void _do_trace_##name(struct tracepoint *tp __attribute__ ((unused)), proto) \ { } \ static inline void trace_##name(proto) \ { } \ - static inline int register_trace_##name(void (*probe)(proto)) \ + static inline int register_trace_##name(void (*probe)(proto) __attribute__ ((unused))) \ { \ return -ENOSYS; \ } \ - static inline int unregister_trace_##name(void (*probe)(proto)) \ + static inline int unregister_trace_##name(void (*probe)(proto) __attribute__ ((unused))) \ { \ return -ENOSYS; \ } @@ -119,8 +119,8 @@ #define EXPORT_TRACEPOINT_SYMBOL_GPL(name) #define EXPORT_TRACEPOINT_SYMBOL(name) -static inline void tracepoint_update_probe_range(struct tracepoint *begin, - struct tracepoint *end) +static inline void tracepoint_update_probe_range(struct tracepoint *begin __attribute__ ((unused)), + struct tracepoint *end __attribute__ ((unused))) { } #endif /* CONFIG_TRACEPOINTS */ #endif /* DECLARE_TRACE */