提交 b5ad8b7f 编写于 作者: J Johannes Berg 提交者: Gustavo F. Padovan

Bluetooth: fix sparse & gcc warnings

sparse complains about a few things that should
be static.
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
上级 6d3ce0e7
......@@ -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;
......
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册