Skip to contentSkip to conversation

backports: replace netlink_seq with spatch

PATCH New Johannes Berg 1 participant 1 message Jan 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backports: replace netlink_seq with spatch

From: Johannes Berg <[email protected]>

Even if right now there's only a single instance of this, we can make backports more robust by using an spatch for it instead of a plain patch.

Change-Id Ib709c254bfb02724e578f4a55e3b2391f61227f2
---
 patches/collateral-evolutions/network/0014-netlink_seq.cocci |  7 +++++++
 .../network/0014-netlink_seq/net_wireless_nl80211.patch      | 12 ------------
 2 files changed, 7 insertions(+), 12 deletions(-)
 create mode 100644 patches/collateral-evolutions/network/0014-netlink_seq.cocci
 delete mode 100644 patches/collateral-evolutions/network/0014-netlink_seq/net_wireless_nl80211.patch
patches/collateral-evolutions/network/0014-netlink_seq.cocci new file +7 -0
new file mode 100644
index 000000000000..4aa1f280d35c
@@ -0,0 +1,7 @@
+@@
+struct netlink_callback *cb;
+expression E;
+@@
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0))
+	cb->seq = E;
++#endif
patches/collateral-evolutions/network/0014-netlink_seq/net_wireless_nl80211.patch deleted +0 -12
deleted file mode 100644
index 362c26c3c6db..000000000000
@@ -1,12 +0,0 @@
---- a/net/wireless/nl80211.c
-+++ b/net/wireless/nl80211.c
-@@ -6853,7 +6853,9 @@ static int nl80211_dump_scan(struct sk_b
- 	spin_lock_bh(&rdev->bss_lock);
- 	cfg80211_bss_expire(rdev);
- 
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0))
- 	cb->seq = rdev->bss_generation;
-+#endif
- 
- 	list_for_each_entry(scan, &rdev->bss_list, list) {
- 		if (++idx <= start)
Signature · 4 lines
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe backports" in