From 1c50cfe22969ebd8231f766a005124643f6fb871 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 12 Oct 2009 23:19:11 +0200 Subject: [PATCH] Remove unused code LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) can not be true in compat-2.6.28.h. The definitions are not needed in compat-wireless any more. Removing this does not break compiling with mainline kernel 2.6.25 to 2.6.32 Signed-off-by: Hauke Mehrtens --- compat/compat-2.6.28.h | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/compat/compat-2.6.28.h b/compat/compat-2.6.28.h index 90d080c80c87..dd223c6771f3 100644 --- a/compat/compat-2.6.28.h +++ b/compat/compat-2.6.28.h @@ -146,22 +146,6 @@ static inline void skb_queue_splice_tail_init(struct sk_buff_head *list, } } /* From include/linux/skbuff.h */ -struct module; -struct tracepoint; - -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)) -struct tracepoint { - const char *name; /* Tracepoint name */ - int state; /* State. */ - void **funcs; -} __attribute__((aligned(32))); /* - * Aligned on 32 bytes because it is - * globally visible and gcc happily - * align these on the structure size. - * Keep in sync with vmlinux.lds.h. - */ -#endif - #ifndef DECLARE_TRACE #define TP_PROTO(args...) args @@ -181,17 +165,9 @@ struct tracepoint { return -ENOSYS; \ } -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)) -#define DEFINE_TRACE(name) -#endif #define EXPORT_TRACEPOINT_SYMBOL_GPL(name) #define EXPORT_TRACEPOINT_SYMBOL(name) -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)) -static inline void tracepoint_update_probe_range(struct tracepoint *begin, - struct tracepoint *end) -{ } -#endif #endif -- 2.30.2