Remove unused code
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 12 Oct 2009 21:19:11 +0000 (23:19 +0200)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 13 Oct 2009 19:41:30 +0000 (12:41 -0700)
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 <hauke@hauke-m.de>
compat/compat-2.6.28.h

index 90d080c80c8740525435c6f573f9e750b880fa04..dd223c6771f309e95a5b9629975472b19d22c17f 100644 (file)
@@ -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