bluetooth: replace deprecated RW_LOCK_UNLOCKED macros
Subsystems (3)
PATCH 4/4 bluetooth: replace deprecated RW_LOCK_UNLOCKED macros
From: "Robert P. J. Day" <[email protected]>
The older RW_LOCK_UNLOCKED macros defeat lockdep state tracing so replace them with the newer __RW_LOCK_UNLOCKED macros.
Signed-off-by Robert P. J. Day <[email protected]>
Acked-by Marcel Holtmann <[email protected]>
Cc Dave Young <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
net/bluetooth/hci_sock.c | 2 +- net/bluetooth/l2cap.c | 2 +- net/bluetooth/rfcomm/sock.c | 2 +- net/bluetooth/sco.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
net/bluetooth/hci_sock.c renamed from net/bluetooth/hci_sock.c~bluetooth-replace-deprecated-rw_lock_unlocked-macros +1 -1
@@ -84,7 +84,7 @@ static struct hci_sec_filter hci_sec_fil };static struct bt_sock_list hci_sk_list = { - .lock =RW_LOCK_UNLOCKED + .lock =__RW_LOCK_UNLOCKED (hci_sk_list.lock) };/* Send frame to RAW socket */
net/bluetooth/l2cap.c renamed from net/bluetooth/l2cap.c~bluetooth-replace-deprecated-rw_lock_unlocked-macros +1 -1
@@ -62,7 +62,7 @@ static u32 l2cap_feat_mask = 0x0000;static const struct proto_ops l2cap_sock_ops;static struct bt_sock_list l2cap_sk_list = { - .lock =RW_LOCK_UNLOCKED + .lock =__RW_LOCK_UNLOCKED (l2cap_sk_list.lock) };static void __l2cap_sock_close (struct sock *sk,int reason);
net/bluetooth/rfcomm/sock.c renamed from net/bluetooth/rfcomm/sock.c~bluetooth-replace-deprecated-rw_lock_unlocked-macros +1 -1
@@ -60,7 +60,7 @@static const struct proto_ops rfcomm_sock_ops;static struct bt_sock_list rfcomm_sk_list = { - .lock =RW_LOCK_UNLOCKED + .lock =__RW_LOCK_UNLOCKED (rfcomm_sk_list.lock) };static void rfcomm_sock_close (struct sock *sk);
net/bluetooth/sco.c renamed from net/bluetooth/sco.c~bluetooth-replace-deprecated-rw_lock_unlocked-macros +1 -1
@@ -58,7 +58,7 @@static const struct proto_ops sco_sock_ops;static struct bt_sock_list sco_sk_list = { - .lock =RW_LOCK_UNLOCKED + .lock =__RW_LOCK_UNLOCKED (sco_sk_list.lock) };static void __sco_chan_add (struct sco_conn *conn,struct sock *sk,struct sock *parent);
_
From: [email protected]
Date: Fri, 28 Mar 2008 14:37:31 -0700
Quoted 9 lines
From: "Robert P. J. Day" <[email protected]>
The older
RW_LOCK_UNLOCKEDmacros defeat lockdep state tracing so replace them with the newer__RW_LOCK_UNLOCKEDmacros.Signed-off-by Robert P. J. Day <[email protected]>Acked-by Marcel Holtmann <[email protected]>Cc Dave Young <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Applied.