1 #ifndef LINUX_3_1_COMPAT_H
2 #define LINUX_3_1_COMPAT_H
4 #include <linux/version.h>
6 #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0))
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.
19 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
20 #define br_port_exists(dev) (dev->priv_flags & IFF_BRIDGE_PORT)
22 #define br_port_exists(dev) (dev->br_port)
25 #define genl_dump_check_consistent(cb, user_hdr, family)
27 #define IFF_TX_SKB_SHARING 0x10000 /* The interface supports sharing
30 #define PCMCIA_DEVICE_MANF_CARD_PROD_ID3(manf, card, v3, vh3) { \
31 .match_flags = PCMCIA_DEV_ID_MATCH_MANF_ID| \
32 PCMCIA_DEV_ID_MATCH_CARD_ID| \
33 PCMCIA_DEV_ID_MATCH_PROD_ID3, \
36 .prod_id = { NULL, NULL, (v3), NULL }, \
37 .prod_id_hash = { 0, 0, (vh3), 0 }, }
39 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0)) */
41 #endif /* LINUX_3_1_COMPAT_H */