Return-Path: From: Marcel Holtmann To: "Robert P. J. Day" In-Reply-To: References: Date: Thu, 20 Mar 2008 14:53:56 +0100 Message-Id: <1206021236.7678.12.camel@californication> Mime-Version: 1.0 Cc: maxk@qualcomm.com, bluez-devel@lists.sf.net Subject: Re: [Bluez-devel] [PATCH] BLUETOOTH: Use newer, non-deprecated __RW_LOCK_UNLOCKED macro. Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Robert, > Signed-off-by: Robert P. J. Day > > --- > > not compile tested, but a fairly trivial transformation. > > > 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(-) > > diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c > index b5d4019..1d36c09 100644 > --- a/net/bluetooth/hci_sock.c > +++ b/net/bluetooth/hci_sock.c > @@ -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) > }; is that the way we do init of locks now? I haven't realized that RW_LOCK_UNLOCKED is deprecated. Regards Marcel ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel