From cf6ca682d16862eed1b42a09865db77c0acbe7ef Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Mon, 4 Aug 2014 17:36:36 +0300 Subject: [PATCH] compat: Remove unused include/linux/tracepoint.h This header came from the community compat and is not used by MLNX_OFED modules. It prevents from Lustre 2.5.x to be compiled. See https://jira.hpdd.intel.com/browse/LU-4266 Signed-off-by: Vladimir Sokolovsky --- include/linux/tracepoint.h | 41 -------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 include/linux/tracepoint.h diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h deleted file mode 100644 index fc44692..0000000 --- a/include/linux/tracepoint.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef _COMPAT_LINUX_TRACEPOINT_H -#define _COMPAT_LINUX_TRACEPOINT_H 1 - -#include - -#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,32)) -/* - * Disable all tracing for older kernels - * < 2.6.27 had no tracing - * 2.6.27 had broken tracing - * 2.6.28-2.6.32 didn't have anything like DECLARE_EVENT_CLASS - * and faking it would be extremely difficult - */ -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)) -/* - * For 2.6.28+ include the original tracepoint.h but override - * the defines new code uses to disable tracing completely. - */ -#include_next -#endif - -#undef TRACE_EVENT -#define TRACE_EVENT(name, proto, ...) \ -static inline void trace_ ## name(proto) {} -#undef DECLARE_EVENT_CLASS -#define DECLARE_EVENT_CLASS(...) -#undef DEFINE_EVENT -#define DEFINE_EVENT(evt_class, name, proto, ...) \ -static inline void trace_ ## name(proto) {} - -#define TP_PROTO(args...) args -#define TP_ARGS(args...) args -#define TP_CONDITION(args...) args - -#else -/* since 2.6.33, tracing hasn't changed, so just include the kernel's file */ -#include_next - -#endif /* (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,32)) */ - -#endif /* _COMPAT_LINUX_TRACEPOINT_H */ -- 2.41.0