Bluetooth: fix sparse & gcc warnings
authorJohannes Berg <johannes.berg@intel.com>
Wed, 1 Jun 2011 06:54:45 +0000 (08:54 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 8 Jun 2011 19:58:18 +0000 (16:58 -0300)
sparse complains about a few things that should
be static.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap_core.c
net/bluetooth/mgmt.c

index c630a0e8c5f9d2fcf52f98bc21b52138b17885f2..bb6be6377891ca331a49644f7a9acb6424bf0bf5 100644 (file)
@@ -62,8 +62,8 @@ static u8 l2cap_fixed_chan[8] = { 0x02, };
 
 static struct workqueue_struct *_busy_wq;
 
-LIST_HEAD(chan_list);
-DEFINE_RWLOCK(chan_list_lock);
+static LIST_HEAD(chan_list);
+static DEFINE_RWLOCK(chan_list_lock);
 
 static void l2cap_busy_work(struct work_struct *work);
 
@@ -500,7 +500,7 @@ static inline int l2cap_check_security(struct l2cap_chan *chan)
        return hci_conn_security(conn->hcon, chan->sec_level, auth_type);
 }
 
-u8 l2cap_get_ident(struct l2cap_conn *conn)
+static u8 l2cap_get_ident(struct l2cap_conn *conn)
 {
        u8 id;
 
index fe835b8e493a031448499e2afbebaa807755fee4..89bc36ae3120ee64ff196edef51c7047dcf2270f 100644 (file)
@@ -41,7 +41,7 @@ struct pending_cmd {
        void *user_data;
 };
 
-LIST_HEAD(cmd_list);
+static LIST_HEAD(cmd_list);
 
 static int cmd_status(struct sock *sk, u16 index, u16 cmd, u8 status)
 {