diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 23:04:11 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-09 14:52:26 +0100 |
commit | e13e44d9a81da4bf77d9869db5b4764fc0811d9f (patch) | |
tree | c610ae2b0f634df75fe88f65a047e5c741c9b0af /patches/0007-lowpan-inet_frag_lru_move.patch | |
parent | 46939c43903da6b202c95a0fcb24acce55fd63c0 (diff) |
backports: always use new version compare macros
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'patches/0007-lowpan-inet_frag_lru_move.patch')
-rw-r--r-- | patches/0007-lowpan-inet_frag_lru_move.patch | 8 |
1 files changed, 4 insertions, 4 deletions
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) { |