Kernel 2.6.40 is now 3.0. The br_port_exists() is function is not in 3.0 yet, so it should go to compat-3.1.h Add to compat-3.0-stable --- include/linux/compat-2.6.h | 2 +- include/linux/{compat-2.6.40.h => compat-3.1.h} | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) rename include/linux/{compat-2.6.40.h => compat-3.1.h} (73%) diff --git a/include/linux/compat-2.6.h b/include/linux/compat-2.6.h index 8e45fc0..893a159 100644 --- a/include/linux/compat-2.6.h +++ b/include/linux/compat-2.6.h @@ -32,6 +32,6 @@ #include <linux/compat-2.6.37.h> #include <linux/compat-2.6.38.h> #include <linux/compat-2.6.39.h> -#include <linux/compat-2.6.40.h> +#include <linux/compat-3.1.h> #endif /* LINUX_26_COMPAT_H */ diff --git a/include/linux/compat-2.6.40.h b/include/linux/compat-3.1.h similarity index 73% rename from include/linux/compat-2.6.40.h rename to include/linux/compat-3.1.h index b3fc8f7..855490e 100644 --- a/include/linux/compat-2.6.40.h +++ b/include/linux/compat-3.1.h @@ -1,11 +1,9 @@ -#ifndef LINUX_26_40_COMPAT_H -#define LINUX_26_40_COMPAT_H +#ifndef LINUX_3_1_COMPAT_H +#define LINUX_3_1_COMPAT_H #include <linux/version.h> -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,40)) - -#include <linux/rcupdate.h> +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0)) /* * This is not part of The 2.6.37 kernel yet but we @@ -24,6 +22,6 @@ #define br_port_exists(dev) (dev->br_port) #endif -#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,40)) */ +#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0)) */ -#endif /* LINUX_26_40_COMPAT_H */ +#endif /* LINUX_3_1_COMPAT_H */ -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html