Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: chromeos/compat-wireless/include/linux/compat-2.6.38.h

Issue 5326002: Update compat-wireless to 2.6.36-5-spn (Closed) Base URL: http://git.chromium.org/git/kernel.git@master
Patch Set: Fixes for !ACK handling, missing local changes, log message fixes Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #ifndef LINUX_26_38_COMPAT_H
2 #define LINUX_26_38_COMPAT_H
3
4 #include <linux/version.h>
5
6 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38))
7
8 /*
9 * This is not part of The 2.6.37 kernel yet but we
10 * we use it to optimize the backport code we
11 * need to implement. Instead of using ifdefs
12 * to check what version of the check we use
13 * we just replace all checks on current code
14 * with this. I'll submit this upstream too, that
15 * way all we'd have to do is to implement this
16 * for older kernels, then we would not have to
17 * edit the upstrema code for backport efforts.
18 */
19 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
20 #define br_port_exists(dev) (dev->priv_flags & IFF_BRIDGE_PORT)
21 #else
22 #define br_port_exists(dev) (dev->br_port)
23 #endif
24
25 /* rename member in struct mmc_host in include/linux/mmc/host.h */
26 #define max_segs max_hw_segs
27
28 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)) */
29
30 #endif /* LINUX_26_38_COMPAT_H */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698