From cac355e1b866ff28fb441012c7796838d2eb8d64 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Fri, 24 Feb 2017 10:48:52 +0100 Subject: 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 --- patches/0075-ndo-stats-64.cocci | 4 ++-- 1 file 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) -- cgit v1.2.3