| Index: chromeos/compat-wireless/include/linux/compat-2.6.38.h
|
| diff --git a/chromeos/compat-wireless/include/linux/compat-2.6.38.h b/chromeos/compat-wireless/include/linux/compat-2.6.38.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fa77a89ed2a4d4d2161db5df8c880f647c23ef65
|
| --- /dev/null
|
| +++ b/chromeos/compat-wireless/include/linux/compat-2.6.38.h
|
| @@ -0,0 +1,30 @@
|
| +#ifndef LINUX_26_38_COMPAT_H
|
| +#define LINUX_26_38_COMPAT_H
|
| +
|
| +#include <linux/version.h>
|
| +
|
| +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38))
|
| +
|
| +/*
|
| + * This is not part of The 2.6.37 kernel yet but we
|
| + * we use it to optimize the backport code we
|
| + * need to implement. Instead of using ifdefs
|
| + * to check what version of the check we use
|
| + * we just replace all checks on current code
|
| + * with this. I'll submit this upstream too, that
|
| + * way all we'd have to do is to implement this
|
| + * for older kernels, then we would not have to
|
| + * edit the upstrema code for backport efforts.
|
| + */
|
| +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
|
| +#define br_port_exists(dev) (dev->priv_flags & IFF_BRIDGE_PORT)
|
| +#else
|
| +#define br_port_exists(dev) (dev->br_port)
|
| +#endif
|
| +
|
| +/* rename member in struct mmc_host in include/linux/mmc/host.h */
|
| +#define max_segs max_hw_segs
|
| +
|
| +#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)) */
|
| +
|
| +#endif /* LINUX_26_38_COMPAT_H */
|
|
|