projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d10740a
)
backports: adjust ndo_get_stats64 change to 4.11
author
Johannes Berg
<johannes.berg@intel.com>
Fri, 24 Feb 2017 09:48:52 +0000
(10:48 +0100)
committer
Johannes 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
patch
|
blob
|
history
diff --git
a/patches/0075-ndo-stats-64.cocci
b/patches/0075-ndo-stats-64.cocci
index a8766492f410e5f9108551b50b9d49f86f770624..756be958657c41cf81c021895ef4102af463fbd0 100644
(file)
--- 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,1
0
,0)
++#if LINUX_VERSION_IS_GEQ(4,1
1
,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,1
0
,0)
++#if LINUX_VERSION_IS_LESS(4,1
1
,0)
+static struct rtnl_link_stats64 *
+stats64_fn_wrap(struct net_device *dev,
+ struct rtnl_link_stats64 *stats)