From e13e44d9a81da4bf77d9869db5b4764fc0811d9f Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Tue, 7 Feb 2017 23:04:11 +0100 Subject: backports: always use new version compare macros Signed-off-by: Johannes Berg --- patches/0007-lowpan-inet_frag_lru_move.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'patches/0007-lowpan-inet_frag_lru_move.patch') diff --git a/patches/0007-lowpan-inet_frag_lru_move.patch b/patches/0007-lowpan-inet_frag_lru_move.patch index d0b2c67c..ef524148 100644 --- a/patches/0007-lowpan-inet_frag_lru_move.patch +++ b/patches/0007-lowpan-inet_frag_lru_move.patch @@ -8,7 +8,7 @@ and then domain specific inet_frag_lru_move() define. fq->d_size = arg->d_size; fq->saddr = *arg->src; fq->daddr = *arg->dst; -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0) ++#if LINUX_VERSION_IS_LESS(3,9,0) + spin_lock_init(&fq->lru_lock); +#endif } @@ -28,12 +28,12 @@ and then domain specific inet_frag_lru_move() define. u16 d_size; struct ieee802154_addr saddr; struct ieee802154_addr daddr; -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0) ++#if LINUX_VERSION_IS_LESS(3,9,0) + spinlock_t lru_lock; +#endif }; -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0) ++#if LINUX_VERSION_IS_LESS(3,9,0) +/* + * XXX: this is a *domain* specific inet_frag_lru_move backport, + * note the added lowpan_ prefix, this requires a respective patch @@ -52,7 +52,7 @@ and then domain specific inet_frag_lru_move() define. + list_move_tail(&q->lru_list, &q->net->lru_list); + spin_unlock(&fq->lru_lock); +} -+#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0) */ ++#endif /* LINUX_VERSION_IS_LESS(3,9,0) */ + static inline u32 ieee802154_addr_hash(const struct ieee802154_addr *a) { -- cgit v1.2.3