From 4b598d6861c090bb1619cc1fc1dae56cd1541f9d Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Fri, 5 Nov 2010 20:27:03 +0100 Subject: [PATCH] compat: remove unnecessary ifdefs and empty file The Makefile only builds the needed compat-2.6.XX.c files and not all, so the ifdefs are not needed. compat-2.6.30.c did not had any real content so remove it. Signed-off-by: Hauke Mehrtens --- compat/Makefile | 1 - compat/compat-2.6.14.c | 4 ---- compat/compat-2.6.18.c | 4 ---- compat/compat-2.6.19.c | 4 ---- compat/compat-2.6.21.c | 4 ---- compat/compat-2.6.22.c | 4 ---- compat/compat-2.6.23.c | 5 ----- compat/compat-2.6.24.c | 6 ------ compat/compat-2.6.25.c | 5 ----- compat/compat-2.6.26.c | 6 ------ compat/compat-2.6.27.c | 5 ----- compat/compat-2.6.28.c | 4 ---- compat/compat-2.6.29.c | 6 ------ compat/compat-2.6.30.c | 18 ------------------ compat/compat-2.6.32.c | 5 ----- compat/compat-2.6.33.c | 5 ----- compat/compat-2.6.35.c | 3 --- compat/compat-2.6.36.c | 4 ---- compat/compat-2.6.37.c | 4 ---- 19 files changed, 97 deletions(-) delete mode 100644 compat/compat-2.6.30.c diff --git a/compat/Makefile b/compat/Makefile index c15a8f350539..46049af187fe 100644 --- a/compat/Makefile +++ b/compat/Makefile @@ -22,7 +22,6 @@ compat-$(CONFIG_COMPAT_KERNEL_26) += compat-2.6.26.o compat-$(CONFIG_COMPAT_KERNEL_27) += compat-2.6.27.o compat-$(CONFIG_COMPAT_KERNEL_28) += compat-2.6.28.o compat-$(CONFIG_COMPAT_KERNEL_29) += compat-2.6.29.o -compat-$(CONFIG_COMPAT_KERNEL_30) += compat-2.6.30.o compat-$(CONFIG_COMPAT_KERNEL_32) += compat-2.6.32.o compat-$(CONFIG_COMPAT_KERNEL_33) += compat-2.6.33.o compat-$(CONFIG_COMPAT_KERNEL_35) += compat-2.6.35.o diff --git a/compat/compat-2.6.14.c b/compat/compat-2.6.14.c index e0af181f4529..3de847d9d057 100644 --- a/compat/compat-2.6.14.c +++ b/compat/compat-2.6.14.c @@ -10,9 +10,5 @@ #include -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)) - /* 2.6.14 compat code goes here */ -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) */ - diff --git a/compat/compat-2.6.18.c b/compat/compat-2.6.18.c index c7fb2e417d82..c7961eeba92b 100644 --- a/compat/compat-2.6.18.c +++ b/compat/compat-2.6.18.c @@ -10,9 +10,5 @@ #include -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)) - /* 2.6.18 compat code goes here */ -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) */ - diff --git a/compat/compat-2.6.19.c b/compat/compat-2.6.19.c index fc75b64dde4d..60c340458098 100644 --- a/compat/compat-2.6.19.c +++ b/compat/compat-2.6.19.c @@ -10,9 +10,5 @@ #include -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)) - /* 2.6.19 compat code goes here */ -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) */ - diff --git a/compat/compat-2.6.21.c b/compat/compat-2.6.21.c index e2737fb2533a..7cf886194bd3 100644 --- a/compat/compat-2.6.21.c +++ b/compat/compat-2.6.21.c @@ -10,9 +10,5 @@ #include -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)) - /* 2.6.21 compat code goes here */ -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21) */ - diff --git a/compat/compat-2.6.22.c b/compat/compat-2.6.22.c index b1ff1f3b3e5b..d4df7b7d8d51 100644 --- a/compat/compat-2.6.22.c +++ b/compat/compat-2.6.22.c @@ -10,9 +10,5 @@ #include -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)) - /* 2.6.22 compat code goes here */ -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) */ - diff --git a/compat/compat-2.6.23.c b/compat/compat-2.6.23.c index 136d949948e9..87f2a8c84023 100644 --- a/compat/compat-2.6.23.c +++ b/compat/compat-2.6.23.c @@ -10,9 +10,6 @@ #include -/* All things not in 2.6.22 */ -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) - /* On net/core/dev.c as of 2.6.24 */ int __dev_addr_delete(struct dev_addr_list **list, int *count, void *addr, int alen, int glbl) @@ -245,5 +242,3 @@ int pci_try_set_mwi(struct pci_dev *dev) EXPORT_SYMBOL(pci_try_set_mwi); #endif -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) */ - diff --git a/compat/compat-2.6.24.c b/compat/compat-2.6.24.c index 31a9212f84e1..a5c9c972cdcc 100644 --- a/compat/compat-2.6.24.c +++ b/compat/compat-2.6.24.c @@ -9,10 +9,6 @@ */ #include - -/* All things not in 2.6.22 and 2.6.23 */ -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) - #include /* @@ -181,5 +177,3 @@ int compat_is_pcie(struct pci_dev *pdev) } EXPORT_SYMBOL(compat_is_pcie); -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) */ - diff --git a/compat/compat-2.6.25.c b/compat/compat-2.6.25.c index 7546821031d6..7cb996b60c0d 100644 --- a/compat/compat-2.6.25.c +++ b/compat/compat-2.6.25.c @@ -8,9 +8,6 @@ * Compatibility file for Linux wireless for kernels 2.6.25. */ -/* All things not in 2.6.22, 2.6.23 and 2.6.24 */ -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)) - #include /** @@ -98,5 +95,3 @@ define_strict_strtox(l, long) EXPORT_SYMBOL(strict_strtoul); EXPORT_SYMBOL(strict_strtol); -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25) */ - diff --git a/compat/compat-2.6.26.c b/compat/compat-2.6.26.c index b9bf9e768956..f4715067511f 100644 --- a/compat/compat-2.6.26.c +++ b/compat/compat-2.6.26.c @@ -16,10 +16,6 @@ #include -/* All things not in 2.6.25 */ -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)) - - /* 2.6.24 does not have the struct kobject with a name */ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) @@ -89,5 +85,3 @@ int dev_set_name(struct device *dev, const char *fmt, ...) } EXPORT_SYMBOL_GPL(dev_set_name); -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) */ - diff --git a/compat/compat-2.6.27.c b/compat/compat-2.6.27.c index b78d4653891f..25bee281ac2e 100644 --- a/compat/compat-2.6.27.c +++ b/compat/compat-2.6.27.c @@ -9,9 +9,6 @@ */ #include - -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)) - #include #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)) #include @@ -240,5 +237,3 @@ void debugfs_remove_recursive(struct dentry *dentry) EXPORT_SYMBOL_GPL(debugfs_remove_recursive); #endif /* CONFIG_DEBUG_FS */ -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27) */ - diff --git a/compat/compat-2.6.28.c b/compat/compat-2.6.28.c index c11ba409b5b3..7a834d2746b9 100644 --- a/compat/compat-2.6.28.c +++ b/compat/compat-2.6.28.c @@ -9,9 +9,6 @@ */ #include - -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)) - #include #include #include @@ -442,4 +439,3 @@ int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file, } EXPORT_SYMBOL(n_tty_ioctl_helper); -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) */ diff --git a/compat/compat-2.6.29.c b/compat/compat-2.6.29.c index cded3cc01a10..14f5e902b07e 100644 --- a/compat/compat-2.6.29.c +++ b/compat/compat-2.6.29.c @@ -9,9 +9,6 @@ */ #include - -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)) - #include #include @@ -167,6 +164,3 @@ int init_dummy_netdev(struct net_device *dev) EXPORT_SYMBOL_GPL(init_dummy_netdev); /* Source: net/core/dev.c */ - -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29) */ - diff --git a/compat/compat-2.6.30.c b/compat/compat-2.6.30.c deleted file mode 100644 index f8219189b47e..000000000000 --- a/compat/compat-2.6.30.c +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2007 Luis R. Rodriguez - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * Compatibility file for Linux wireless for kernels 2.6.30. - */ - -#include - -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)) - -/* 2.6.30 compat code goes here */ - -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) */ - diff --git a/compat/compat-2.6.32.c b/compat/compat-2.6.32.c index 22c2c197f282..013150d098fe 100644 --- a/compat/compat-2.6.32.c +++ b/compat/compat-2.6.32.c @@ -9,9 +9,6 @@ */ #include - -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)) - #include int __dev_addr_add(struct dev_addr_list **list, int *count, @@ -120,5 +117,3 @@ void __dev_addr_unsync(struct dev_addr_list **to, int *to_count, } EXPORT_SYMBOL_GPL(__dev_addr_unsync); -#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)) */ - diff --git a/compat/compat-2.6.33.c b/compat/compat-2.6.33.c index 055082e76c95..c8e568dfa10c 100644 --- a/compat/compat-2.6.33.c +++ b/compat/compat-2.6.33.c @@ -9,9 +9,6 @@ */ #include - -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) - #include #if defined(CONFIG_PCCARD) || defined(CONFIG_PCCARD_MODULE) @@ -133,5 +130,3 @@ EXPORT_SYMBOL(pcmcia_loop_tuple); #endif /* CONFIG_PCCARD */ -#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) */ - diff --git a/compat/compat-2.6.35.c b/compat/compat-2.6.35.c index abb08c709905..44a15d63cf9d 100644 --- a/compat/compat-2.6.35.c +++ b/compat/compat-2.6.35.c @@ -9,8 +9,6 @@ */ #include - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35) #include /** @@ -48,4 +46,3 @@ loff_t noop_llseek(struct file *file, loff_t offset, int origin) } EXPORT_SYMBOL(noop_llseek); -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35) */ diff --git a/compat/compat-2.6.36.c b/compat/compat-2.6.36.c index bd9335d673a9..5faefb4b2376 100644 --- a/compat/compat-2.6.36.c +++ b/compat/compat-2.6.36.c @@ -9,9 +9,6 @@ */ #include - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36) - #include #ifdef CONFIG_COMPAT_USB_URB_THREAD_FIX @@ -97,4 +94,3 @@ void compat_usb_scuttle_anchored_urbs(struct usb_anchor *anchor) EXPORT_SYMBOL_GPL(compat_usb_scuttle_anchored_urbs); #endif /* CONFIG_COMPAT_USB_URB_THREAD_FIX */ -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36) */ diff --git a/compat/compat-2.6.37.c b/compat/compat-2.6.37.c index d949a929b912..81f466f3b58a 100644 --- a/compat/compat-2.6.37.c +++ b/compat/compat-2.6.37.c @@ -9,9 +9,6 @@ */ #include - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) - #include #include #include @@ -155,4 +152,3 @@ int compat_genl_unregister_family(struct genl_family *family) } EXPORT_SYMBOL(compat_genl_unregister_family); -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) */ -- 2.30.2