Skip to content

Commit 59d4d08

Browse files
holtmannjhedberg
authored andcommitted
Bluetooth: Make amp_mgr_list and amp_mgr_list_lock static
There is no reason to have amp_mgr_list and amp_mgr_list_lock exported from a2mp.c and thus make both of them static. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
1 parent 055540a commit 59d4d08

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎net/bluetooth/a2mp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
#define A2MP_FEAT_EXT 0x8000
2323

2424
/* Global AMP Manager list */
25-
LIST_HEAD(amp_mgr_list);
26-
DEFINE_MUTEX(amp_mgr_list_lock);
25+
static LIST_HEAD(amp_mgr_list);
26+
static DEFINE_MUTEX(amp_mgr_list_lock);
2727

2828
/* A2MP build & send command helper functions */
2929
static struct a2mp_cmd *__a2mp_build(u8 code, u8 ident, u16 len, void *data)

‎net/bluetooth/a2mp.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ struct a2mp_physlink_rsp {
129129
#define A2MP_STATUS_PHYS_LINK_EXISTS 0x05
130130
#define A2MP_STATUS_SECURITY_VIOLATION 0x06
131131

132-
extern struct list_head amp_mgr_list;
133-
extern struct mutex amp_mgr_list_lock;
134-
135132
struct amp_mgr *amp_mgr_get(struct amp_mgr *mgr);
136133
int amp_mgr_put(struct amp_mgr *mgr);
137134
u8 __next_ident(struct amp_mgr *mgr);

0 commit comments

Comments
 (0)