summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions/network/0030-qdisc_tx_busylock/bluetooth.patch
blob: 677868123c9adbe031b8db05f911857291681135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -623,7 +623,9 @@ static netdev_tx_t bt_xmit(struct sk_buf
 	return err < 0 ? NET_XMIT_DROP : err;
 }
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
 static struct lock_class_key bt_tx_busylock;
+#endif
 static struct lock_class_key bt_netdev_xmit_lock_key;
 
 static void bt_set_lockdep_class_one(struct net_device *dev,
@@ -636,7 +638,9 @@ static void bt_set_lockdep_class_one(str
 static int bt_dev_init(struct net_device *dev)
 {
 	netdev_for_each_tx_queue(dev, bt_set_lockdep_class_one, NULL);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
 	dev->qdisc_tx_busylock = &bt_tx_busylock;
+#endif
 
 	return 0;
 }