summaryrefslogtreecommitdiff
path: root/patches/0030-qdisc_tx_busylock/ieee802154.patch
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-02-07 08:07:39 +0100
committerJohannes Berg <johannes.berg@intel.com>2017-02-07 15:07:16 +0100
commit75239f276ec894c87b8fbc268bdfb0f9fd290445 (patch)
tree14a91c251f2b1986a709876d90d9a0828b8c3769 /patches/0030-qdisc_tx_busylock/ieee802154.patch
parent6981c5a175652d79562795127ab4ff62c9ecfac0 (diff)
backports: get rid of patch directory structure
This directory structure was never really managed well, simply get rid of it. With the patch system that only applies patches when the modified file exists, and with a lot of spatches applying everywhere anyway, it's no longer really useful either. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'patches/0030-qdisc_tx_busylock/ieee802154.patch')
-rw-r--r--patches/0030-qdisc_tx_busylock/ieee802154.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/patches/0030-qdisc_tx_busylock/ieee802154.patch b/patches/0030-qdisc_tx_busylock/ieee802154.patch
new file mode 100644
index 00000000..b905b050
--- /dev/null
+++ b/patches/0030-qdisc_tx_busylock/ieee802154.patch
@@ -0,0 +1,22 @@
+--- a/net/ieee802154/6lowpan_rtnl.c
++++ b/net/ieee802154/6lowpan_rtnl.c
+@@ -428,7 +428,9 @@ static struct header_ops lowpan_header_o
+ .create = lowpan_header_create,
+ };
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
+ static struct lock_class_key lowpan_tx_busylock;
++#endif
+ static struct lock_class_key lowpan_netdev_xmit_lock_key;
+
+ static void lowpan_set_lockdep_class_one(struct net_device *dev,
+@@ -442,7 +444,9 @@ static void lowpan_set_lockdep_class_one
+ static int lowpan_dev_init(struct net_device *dev)
+ {
+ netdev_for_each_tx_queue(dev, lowpan_set_lockdep_class_one, NULL);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
+ dev->qdisc_tx_busylock = &lowpan_tx_busylock;
++#endif
+ return 0;
+ }
+