mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-17 16:14:25 +08:00
bluetooth: Remove extern from function prototypes
There are a mix of function prototypes with and without extern in the kernel sources. Standardize on not using extern for function prototypes. Function prototypes don't need to be written with extern. extern is assumed by the compiler. Its use is as unnecessary as using auto to declare automatic/local variables in a block. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d511337a1e
commit
e74e58f8d2
@ -331,16 +331,16 @@ out:
|
|||||||
|
|
||||||
int bt_to_errno(__u16 code);
|
int bt_to_errno(__u16 code);
|
||||||
|
|
||||||
extern int hci_sock_init(void);
|
int hci_sock_init(void);
|
||||||
extern void hci_sock_cleanup(void);
|
void hci_sock_cleanup(void);
|
||||||
|
|
||||||
extern int bt_sysfs_init(void);
|
int bt_sysfs_init(void);
|
||||||
extern void bt_sysfs_cleanup(void);
|
void bt_sysfs_cleanup(void);
|
||||||
|
|
||||||
extern int bt_procfs_init(struct net *net, const char *name,
|
int bt_procfs_init(struct net *net, const char *name,
|
||||||
struct bt_sock_list *sk_list,
|
struct bt_sock_list *sk_list,
|
||||||
int (*seq_show)(struct seq_file *, void *));
|
int (*seq_show)(struct seq_file *, void *));
|
||||||
extern void bt_procfs_cleanup(struct net *net, const char *name);
|
void bt_procfs_cleanup(struct net *net, const char *name);
|
||||||
|
|
||||||
extern struct dentry *bt_debugfs;
|
extern struct dentry *bt_debugfs;
|
||||||
|
|
||||||
|
@ -367,18 +367,17 @@ extern rwlock_t hci_dev_list_lock;
|
|||||||
extern rwlock_t hci_cb_list_lock;
|
extern rwlock_t hci_cb_list_lock;
|
||||||
|
|
||||||
/* ----- HCI interface to upper protocols ----- */
|
/* ----- HCI interface to upper protocols ----- */
|
||||||
extern int l2cap_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr);
|
int l2cap_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr);
|
||||||
extern void l2cap_connect_cfm(struct hci_conn *hcon, u8 status);
|
void l2cap_connect_cfm(struct hci_conn *hcon, u8 status);
|
||||||
extern int l2cap_disconn_ind(struct hci_conn *hcon);
|
int l2cap_disconn_ind(struct hci_conn *hcon);
|
||||||
extern void l2cap_disconn_cfm(struct hci_conn *hcon, u8 reason);
|
void l2cap_disconn_cfm(struct hci_conn *hcon, u8 reason);
|
||||||
extern int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt);
|
int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt);
|
||||||
extern int l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb,
|
int l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 flags);
|
||||||
u16 flags);
|
|
||||||
|
|
||||||
extern int sco_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr, __u8 *flags);
|
int sco_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr, __u8 *flags);
|
||||||
extern void sco_connect_cfm(struct hci_conn *hcon, __u8 status);
|
void sco_connect_cfm(struct hci_conn *hcon, __u8 status);
|
||||||
extern void sco_disconn_cfm(struct hci_conn *hcon, __u8 reason);
|
void sco_disconn_cfm(struct hci_conn *hcon, __u8 reason);
|
||||||
extern int sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb);
|
int sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb);
|
||||||
|
|
||||||
/* ----- Inquiry cache ----- */
|
/* ----- Inquiry cache ----- */
|
||||||
#define INQUIRY_CACHE_AGE_MAX (HZ*30) /* 30 seconds */
|
#define INQUIRY_CACHE_AGE_MAX (HZ*30) /* 30 seconds */
|
||||||
|
@ -256,8 +256,8 @@ static inline void rfcomm_dlc_put(struct rfcomm_dlc *d)
|
|||||||
rfcomm_dlc_free(d);
|
rfcomm_dlc_free(d);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void __rfcomm_dlc_throttle(struct rfcomm_dlc *d);
|
void __rfcomm_dlc_throttle(struct rfcomm_dlc *d);
|
||||||
extern void __rfcomm_dlc_unthrottle(struct rfcomm_dlc *d);
|
void __rfcomm_dlc_unthrottle(struct rfcomm_dlc *d);
|
||||||
|
|
||||||
static inline void rfcomm_dlc_throttle(struct rfcomm_dlc *d)
|
static inline void rfcomm_dlc_throttle(struct rfcomm_dlc *d)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user