Commit 6f4ce64b authored by Marcel Holtmann's avatar Marcel Holtmann

[Bluetooth] Make some code of the core static

This patch makes some needlessly global code static.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent f60fd965
...@@ -277,7 +277,6 @@ static inline struct hci_conn *hci_conn_hash_lookup_ba(struct hci_dev *hdev, ...@@ -277,7 +277,6 @@ static inline struct hci_conn *hci_conn_hash_lookup_ba(struct hci_dev *hdev,
return NULL; return NULL;
} }
void hci_acl_connect(struct hci_conn *conn);
void hci_acl_disconn(struct hci_conn *conn, __u8 reason); void hci_acl_disconn(struct hci_conn *conn, __u8 reason);
void hci_add_sco(struct hci_conn *conn, __u16 handle); void hci_add_sco(struct hci_conn *conn, __u16 handle);
...@@ -589,6 +588,5 @@ struct hci_sec_filter { ...@@ -589,6 +588,5 @@ struct hci_sec_filter {
#define hci_req_unlock(d) up(&d->req_lock) #define hci_req_unlock(d) up(&d->req_lock)
void hci_req_complete(struct hci_dev *hdev, int result); void hci_req_complete(struct hci_dev *hdev, int result);
void hci_req_cancel(struct hci_dev *hdev, int err);
#endif /* __HCI_CORE_H */ #endif /* __HCI_CORE_H */
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
#define BT_DBG(D...) #define BT_DBG(D...)
#endif #endif
void hci_acl_connect(struct hci_conn *conn) static void hci_acl_connect(struct hci_conn *conn)
{ {
struct hci_dev *hdev = conn->hdev; struct hci_dev *hdev = conn->hdev;
struct inquiry_entry *ie; struct inquiry_entry *ie;
......
...@@ -59,7 +59,7 @@ static void hci_rx_task(unsigned long arg); ...@@ -59,7 +59,7 @@ static void hci_rx_task(unsigned long arg);
static void hci_tx_task(unsigned long arg); static void hci_tx_task(unsigned long arg);
static void hci_notify(struct hci_dev *hdev, int event); static void hci_notify(struct hci_dev *hdev, int event);
rwlock_t hci_task_lock = RW_LOCK_UNLOCKED; static rwlock_t hci_task_lock = RW_LOCK_UNLOCKED;
/* HCI device list */ /* HCI device list */
LIST_HEAD(hci_dev_list); LIST_HEAD(hci_dev_list);
...@@ -106,7 +106,7 @@ void hci_req_complete(struct hci_dev *hdev, int result) ...@@ -106,7 +106,7 @@ void hci_req_complete(struct hci_dev *hdev, int result)
} }
} }
void hci_req_cancel(struct hci_dev *hdev, int err) static void hci_req_cancel(struct hci_dev *hdev, int err)
{ {
BT_DBG("%s err 0x%2.2x", hdev->name, err); BT_DBG("%s err 0x%2.2x", hdev->name, err);
......
...@@ -447,7 +447,7 @@ static int hci_sock_sendmsg(struct kiocb *iocb, struct socket *sock, ...@@ -447,7 +447,7 @@ static int hci_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
goto done; goto done;
} }
int hci_sock_setsockopt(struct socket *sock, int level, int optname, char __user *optval, int len) static int hci_sock_setsockopt(struct socket *sock, int level, int optname, char __user *optval, int len)
{ {
struct hci_ufilter uf = { .opcode = 0 }; struct hci_ufilter uf = { .opcode = 0 };
struct sock *sk = sock->sk; struct sock *sk = sock->sk;
...@@ -514,7 +514,7 @@ int hci_sock_setsockopt(struct socket *sock, int level, int optname, char __user ...@@ -514,7 +514,7 @@ int hci_sock_setsockopt(struct socket *sock, int level, int optname, char __user
return err; return err;
} }
int hci_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) static int hci_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen)
{ {
struct hci_ufilter uf; struct hci_ufilter uf;
struct sock *sk = sock->sk; struct sock *sk = sock->sk;
...@@ -567,7 +567,7 @@ int hci_sock_getsockopt(struct socket *sock, int level, int optname, char __user ...@@ -567,7 +567,7 @@ int hci_sock_getsockopt(struct socket *sock, int level, int optname, char __user
return 0; return 0;
} }
struct proto_ops hci_sock_ops = { static struct proto_ops hci_sock_ops = {
.family = PF_BLUETOOTH, .family = PF_BLUETOOTH,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.release = hci_sock_release, .release = hci_sock_release,
...@@ -647,13 +647,13 @@ static int hci_sock_dev_event(struct notifier_block *this, unsigned long event, ...@@ -647,13 +647,13 @@ static int hci_sock_dev_event(struct notifier_block *this, unsigned long event,
return NOTIFY_DONE; return NOTIFY_DONE;
} }
struct net_proto_family hci_sock_family_ops = { static struct net_proto_family hci_sock_family_ops = {
.family = PF_BLUETOOTH, .family = PF_BLUETOOTH,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.create = hci_sock_create, .create = hci_sock_create,
}; };
struct notifier_block hci_sock_nblock = { static struct notifier_block hci_sock_nblock = {
.notifier_call = hci_sock_dev_event .notifier_call = hci_sock_dev_event
}; };
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
static struct proto_ops l2cap_sock_ops; static struct proto_ops l2cap_sock_ops;
struct bt_sock_list l2cap_sk_list = { static struct bt_sock_list l2cap_sk_list = {
.lock = RW_LOCK_UNLOCKED .lock = RW_LOCK_UNLOCKED
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment