summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-02-24 10:48:52 +0100
committerJohannes Berg <johannes.berg@intel.com>2017-02-24 10:50:31 +0100
commitcac355e1b866ff28fb441012c7796838d2eb8d64 (patch)
tree0e4e9a0282de4553d46a39fa14635c5b53363929
parentd10740aeef2b3670430bb877bd8b365e227b9c7f (diff)
backports: adjust ndo_get_stats64 change to 4.11
This will only land in kernel 4.11, I mixed up the versions before. Fix that. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-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 a8766492..756be958 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_IS_GEQ(4,10,0)
++#if LINUX_VERSION_IS_GEQ(4,11,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_IS_LESS(4,10,0)
++#if LINUX_VERSION_IS_LESS(4,11,0)
+static struct rtnl_link_stats64 *
+stats64_fn_wrap(struct net_device *dev,
+ struct rtnl_link_stats64 *stats)