aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-06-01 02:54:45 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-06-08 15:58:18 -0400
commitb5ad8b7f8c3f3711129d67aeda85ceec690c3cd0 (patch)
tree808c8160d48176bff3a9594d60f565b98f47acf3
parent6d3ce0e7902314ddb330deaf8827205881d7e59f (diff)
Bluetooth: fix sparse & gcc warnings
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>
-rw-r--r--net/bluetooth/l2cap_core.c6
-rw-r--r--net/bluetooth/mgmt.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index c630a0e8c5f9..bb6be6377891 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -62,8 +62,8 @@ static u8 l2cap_fixed_chan[8] = { 0x02, };
62 62
63static struct workqueue_struct *_busy_wq; 63static struct workqueue_struct *_busy_wq;
64 64
65LIST_HEAD(chan_list); 65static LIST_HEAD(chan_list);
66DEFINE_RWLOCK(chan_list_lock); 66static DEFINE_RWLOCK(chan_list_lock);
67 67
68static void l2cap_busy_work(struct work_struct *work); 68static void l2cap_busy_work(struct work_struct *work);
69 69
@@ -500,7 +500,7 @@ static inline int l2cap_check_security(struct l2cap_chan *chan)
500 return hci_conn_security(conn->hcon, chan->sec_level, auth_type); 500 return hci_conn_security(conn->hcon, chan->sec_level, auth_type);
501} 501}
502 502
503u8 l2cap_get_ident(struct l2cap_conn *conn) 503static u8 l2cap_get_ident(struct l2cap_conn *conn)
504{ 504{
505 u8 id; 505 u8 id;
506 506
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index fe835b8e493a..89bc36ae3120 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -41,7 +41,7 @@ struct pending_cmd {
41 void *user_data; 41 void *user_data;
42}; 42};
43 43
44LIST_HEAD(cmd_list); 44static LIST_HEAD(cmd_list);
45 45
46static int cmd_status(struct sock *sk, u16 index, u16 cmd, u8 status) 46static int cmd_status(struct sock *sk, u16 index, u16 cmd, u8 status)
47{ 47{