diff options
Diffstat (limited to 'backport/backport-include/net/sch_generic.h')
-rw-r--r-- | backport/backport-include/net/sch_generic.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backport/backport-include/net/sch_generic.h b/backport/backport-include/net/sch_generic.h index a8637976..cabc6012 100644 --- a/backport/backport-include/net/sch_generic.h +++ b/backport/backport-include/net/sch_generic.h @@ -2,8 +2,8 @@ #define __BACKPORT_NET_SCH_GENERIC_H #include_next <net/sch_generic.h> -#if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) -#if !((LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,9) && LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)) || (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,23) && LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0))) +#if LINUX_VERSION_IS_LESS(3,3,0) +#if !((LINUX_VERSION_IS_GEQ(3,2,9) && LINUX_VERSION_IS_LESS(3,3,0)) || (LINUX_VERSION_IS_GEQ(3,0,23) && LINUX_VERSION_IS_LESS(3,1,0))) /* mask qdisc_cb_private_validate as RHEL6 backports this */ #define qdisc_cb_private_validate(a,b) compat_qdisc_cb_private_validate(a,b) static inline void qdisc_cb_private_validate(const struct sk_buff *skb, int sz) @@ -11,7 +11,7 @@ static inline void qdisc_cb_private_validate(const struct sk_buff *skb, int sz) BUILD_BUG_ON(sizeof(skb->cb) < sizeof(struct qdisc_skb_cb) + sz); } #endif -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) */ +#endif /* LINUX_VERSION_IS_LESS(3,3,0) */ #ifndef TCQ_F_CAN_BYPASS #define TCQ_F_CAN_BYPASS 4 |