Skip to content

Commit

Permalink
Bluetooth: fix sparse & gcc warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and Gustavo F. Padovan committed Jun 8, 2011
1 parent 6d3ce0e commit b5ad8b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit b5ad8b7

Please sign in to comment.