summaryrefslogtreecommitdiff
path: root/patches/0075-ndo-stats-64.cocci
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-02-07 23:04:11 +0100
committerJohannes Berg <johannes.berg@intel.com>2017-02-09 14:52:26 +0100
commite13e44d9a81da4bf77d9869db5b4764fc0811d9f (patch)
treec610ae2b0f634df75fe88f65a047e5c741c9b0af /patches/0075-ndo-stats-64.cocci
parent46939c43903da6b202c95a0fcb24acce55fd63c0 (diff)
backports: always use new version compare macros
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'patches/0075-ndo-stats-64.cocci')
-rw-r--r--patches/0075-ndo-stats-64.cocci4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/0075-ndo-stats-64.cocci b/patches/0075-ndo-stats-64.cocci
index ac449de2..a8766492 100644
--- a/patches/0075-ndo-stats-64.cocci
+++ b/patches/0075-ndo-stats-64.cocci
@@ -5,7 +5,7 @@ fresh identifier stats64_fn_wrap = "bp_" ## stats64_fn;
position p;
@@
struct net_device_ops OPS@p = {
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)
++#if LINUX_VERSION_IS_GEQ(4,10,0)
.ndo_get_stats64 = stats64_fn,
+#else
+ .ndo_get_stats64 = stats64_fn_wrap,
@@ -17,7 +17,7 @@ identifier r.stats64_fn_wrap;
identifier r.stats64_fn;
@@
void stats64_fn(...) {...}
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,10,0)
++#if LINUX_VERSION_IS_LESS(4,10,0)
+static struct rtnl_link_stats64 *
+stats64_fn_wrap(struct net_device *dev,
+ struct rtnl_link_stats64 *stats)