backports: adjust ndo_get_stats64 change to 4.11
authorJohannes Berg <johannes.berg@intel.com>
Fri, 24 Feb 2017 09:48:52 +0000 (10:48 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 24 Feb 2017 09:50:31 +0000 (10:50 +0100)
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>
patches/0075-ndo-stats-64.cocci

index a8766492f410e5f9108551b50b9d49f86f770624..756be958657c41cf81c021895ef4102af463fbd0 100644 (file)
@@ -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)