Skip to content

Commit

Permalink
bluetooth: replace deprecated RW_LOCK_UNLOCKED macros
Browse files Browse the repository at this point in the history
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 <rpjday@crashcourse.ca>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Robert P. J. Day authored and David S. Miller committed Mar 28, 2008
1 parent 293a383 commit d5fb296
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion net/bluetooth/hci_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static struct hci_sec_filter hci_sec_filter = {
};

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 */
Expand Down
2 changes: 1 addition & 1 deletion net/bluetooth/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion net/bluetooth/rfcomm/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion net/bluetooth/sco.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d5fb296

Please sign in to comment.