1 --- a/include/linux/compat-2.6.38.h
2 +++ b/include/linux/compat-2.6.38.h
4 #include <linux/kernel.h>
5 #include <linux/skbuff.h>
8 - * This is not part of The 2.6.37 kernel yet but we
9 - * we use it to optimize the backport code we
10 - * need to implement. Instead of using ifdefs
11 - * to check what version of the check we use
12 - * we just replace all checks on current code
13 - * with this. I'll submit this upstream too, that
14 - * way all we'd have to do is to implement this
15 - * for older kernels, then we would not have to
16 - * edit the upstrema code for backport efforts.
18 -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
19 -#define br_port_exists(dev) (dev->priv_flags & IFF_BRIDGE_PORT)
21 -#define br_port_exists(dev) (dev->br_port)
24 /* rename member in struct mmc_host in include/linux/mmc/host.h */
25 #define max_segs max_hw_segs
27 --- a/include/linux/compat-2.6.h
28 +++ b/include/linux/compat-2.6.h
30 #include <linux/compat-2.6.37.h>
31 #include <linux/compat-2.6.38.h>
34 + * This is not part of The 2.6.37 kernel yet but we
35 + * we use it to optimize the backport code we
36 + * need to implement. Instead of using ifdefs
37 + * to check what version of the check we use
38 + * we just replace all checks on current code
39 + * with this. I'll submit this upstream too, that
40 + * way all we'd have to do is to implement this
41 + * for older kernels, then we would not have to
42 + * edit the upstrema code for backport efforts.
44 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
45 +#define br_port_exists(dev) (dev->priv_flags & IFF_BRIDGE_PORT)
47 +#define br_port_exists(dev) (dev->br_port)
50 #endif /* LINUX_26_COMPAT_H */