diff options
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/af_bluetooth.c | 7 | ||||
-rw-r--r-- | net/bluetooth/bnep/bnep.h | 2 | ||||
-rw-r--r-- | net/bluetooth/bnep/core.c | 5 | ||||
-rw-r--r-- | net/bluetooth/bnep/netdev.c | 5 | ||||
-rw-r--r-- | net/bluetooth/bnep/sock.c | 5 | ||||
-rw-r--r-- | net/bluetooth/cmtp/capi.c | 5 | ||||
-rw-r--r-- | net/bluetooth/cmtp/core.c | 5 | ||||
-rw-r--r-- | net/bluetooth/cmtp/sock.c | 5 | ||||
-rw-r--r-- | net/bluetooth/hci_conn.c | 5 | ||||
-rw-r--r-- | net/bluetooth/hci_core.c | 7 | ||||
-rw-r--r-- | net/bluetooth/hci_event.c | 5 | ||||
-rw-r--r-- | net/bluetooth/hci_sock.c | 5 | ||||
-rw-r--r-- | net/bluetooth/hci_sysfs.c | 5 | ||||
-rw-r--r-- | net/bluetooth/hidp/core.c | 5 | ||||
-rw-r--r-- | net/bluetooth/hidp/sock.c | 5 | ||||
-rw-r--r-- | net/bluetooth/l2cap.c | 5 | ||||
-rw-r--r-- | net/bluetooth/rfcomm/core.c | 5 | ||||
-rw-r--r-- | net/bluetooth/rfcomm/sock.c | 7 | ||||
-rw-r--r-- | net/bluetooth/rfcomm/tty.c | 5 | ||||
-rw-r--r-- | net/bluetooth/sco.c | 5 |
20 files changed, 4 insertions, 99 deletions
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c index f6f216e57aa3..744ed3f07ef3 100644 --- a/net/bluetooth/af_bluetooth.c +++ b/net/bluetooth/af_bluetooth.c | |||
@@ -41,11 +41,6 @@ | |||
41 | 41 | ||
42 | #include <net/bluetooth/bluetooth.h> | 42 | #include <net/bluetooth/bluetooth.h> |
43 | 43 | ||
44 | #ifndef CONFIG_BT_SOCK_DEBUG | ||
45 | #undef BT_DBG | ||
46 | #define BT_DBG(D...) | ||
47 | #endif | ||
48 | |||
49 | #define VERSION "2.14" | 44 | #define VERSION "2.14" |
50 | 45 | ||
51 | /* Bluetooth sockets */ | 46 | /* Bluetooth sockets */ |
@@ -245,7 +240,7 @@ int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
245 | size_t copied; | 240 | size_t copied; |
246 | int err; | 241 | int err; |
247 | 242 | ||
248 | BT_DBG("sock %p sk %p len %d", sock, sk, len); | 243 | BT_DBG("sock %p sk %p len %zu", sock, sk, len); |
249 | 244 | ||
250 | if (flags & (MSG_OOB)) | 245 | if (flags & (MSG_OOB)) |
251 | return -EOPNOTSUPP; | 246 | return -EOPNOTSUPP; |
diff --git a/net/bluetooth/bnep/bnep.h b/net/bluetooth/bnep/bnep.h index b69bf4e7c48b..d20f8a40f36e 100644 --- a/net/bluetooth/bnep/bnep.h +++ b/net/bluetooth/bnep/bnep.h | |||
@@ -161,7 +161,7 @@ struct bnep_session { | |||
161 | struct msghdr msg; | 161 | struct msghdr msg; |
162 | 162 | ||
163 | struct bnep_proto_filter proto_filter[BNEP_MAX_PROTO_FILTERS]; | 163 | struct bnep_proto_filter proto_filter[BNEP_MAX_PROTO_FILTERS]; |
164 | u64 mc_filter; | 164 | unsigned long long mc_filter; |
165 | 165 | ||
166 | struct socket *sock; | 166 | struct socket *sock; |
167 | struct net_device *dev; | 167 | struct net_device *dev; |
diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c index f8efaf35293c..70fea8bdb4e5 100644 --- a/net/bluetooth/bnep/core.c +++ b/net/bluetooth/bnep/core.c | |||
@@ -52,11 +52,6 @@ | |||
52 | 52 | ||
53 | #include "bnep.h" | 53 | #include "bnep.h" |
54 | 54 | ||
55 | #ifndef CONFIG_BT_BNEP_DEBUG | ||
56 | #undef BT_DBG | ||
57 | #define BT_DBG(D...) | ||
58 | #endif | ||
59 | |||
60 | #define VERSION "1.3" | 55 | #define VERSION "1.3" |
61 | 56 | ||
62 | static int compress_src = 1; | 57 | static int compress_src = 1; |
diff --git a/net/bluetooth/bnep/netdev.c b/net/bluetooth/bnep/netdev.c index 47e179f62e82..f897da6e0444 100644 --- a/net/bluetooth/bnep/netdev.c +++ b/net/bluetooth/bnep/netdev.c | |||
@@ -41,11 +41,6 @@ | |||
41 | 41 | ||
42 | #include "bnep.h" | 42 | #include "bnep.h" |
43 | 43 | ||
44 | #ifndef CONFIG_BT_BNEP_DEBUG | ||
45 | #undef BT_DBG | ||
46 | #define BT_DBG( A... ) | ||
47 | #endif | ||
48 | |||
49 | #define BNEP_TX_QUEUE_LEN 20 | 44 | #define BNEP_TX_QUEUE_LEN 20 |
50 | 45 | ||
51 | static int bnep_net_open(struct net_device *dev) | 46 | static int bnep_net_open(struct net_device *dev) |
diff --git a/net/bluetooth/bnep/sock.c b/net/bluetooth/bnep/sock.c index 8ffb57f2303a..e857628b0b27 100644 --- a/net/bluetooth/bnep/sock.c +++ b/net/bluetooth/bnep/sock.c | |||
@@ -46,11 +46,6 @@ | |||
46 | 46 | ||
47 | #include "bnep.h" | 47 | #include "bnep.h" |
48 | 48 | ||
49 | #ifndef CONFIG_BT_BNEP_DEBUG | ||
50 | #undef BT_DBG | ||
51 | #define BT_DBG( A... ) | ||
52 | #endif | ||
53 | |||
54 | static int bnep_sock_release(struct socket *sock) | 49 | static int bnep_sock_release(struct socket *sock) |
55 | { | 50 | { |
56 | struct sock *sk = sock->sk; | 51 | struct sock *sk = sock->sk; |
diff --git a/net/bluetooth/cmtp/capi.c b/net/bluetooth/cmtp/capi.c index 3e9d5bb3fefb..78958c0f9a40 100644 --- a/net/bluetooth/cmtp/capi.c +++ b/net/bluetooth/cmtp/capi.c | |||
@@ -42,11 +42,6 @@ | |||
42 | 42 | ||
43 | #include "cmtp.h" | 43 | #include "cmtp.h" |
44 | 44 | ||
45 | #ifndef CONFIG_BT_CMTP_DEBUG | ||
46 | #undef BT_DBG | ||
47 | #define BT_DBG(D...) | ||
48 | #endif | ||
49 | |||
50 | #define CAPI_INTEROPERABILITY 0x20 | 45 | #define CAPI_INTEROPERABILITY 0x20 |
51 | 46 | ||
52 | #define CAPI_INTEROPERABILITY_REQ CAPICMD(CAPI_INTEROPERABILITY, CAPI_REQ) | 47 | #define CAPI_INTEROPERABILITY_REQ CAPICMD(CAPI_INTEROPERABILITY, CAPI_REQ) |
diff --git a/net/bluetooth/cmtp/core.c b/net/bluetooth/cmtp/core.c index ca60a4517fd3..c9cac7719efe 100644 --- a/net/bluetooth/cmtp/core.c +++ b/net/bluetooth/cmtp/core.c | |||
@@ -44,11 +44,6 @@ | |||
44 | 44 | ||
45 | #include "cmtp.h" | 45 | #include "cmtp.h" |
46 | 46 | ||
47 | #ifndef CONFIG_BT_CMTP_DEBUG | ||
48 | #undef BT_DBG | ||
49 | #define BT_DBG(D...) | ||
50 | #endif | ||
51 | |||
52 | #define VERSION "1.0" | 47 | #define VERSION "1.0" |
53 | 48 | ||
54 | static DECLARE_RWSEM(cmtp_session_sem); | 49 | static DECLARE_RWSEM(cmtp_session_sem); |
diff --git a/net/bluetooth/cmtp/sock.c b/net/bluetooth/cmtp/sock.c index 8c7f7bc4e0ba..16b0fad74f6e 100644 --- a/net/bluetooth/cmtp/sock.c +++ b/net/bluetooth/cmtp/sock.c | |||
@@ -43,11 +43,6 @@ | |||
43 | 43 | ||
44 | #include "cmtp.h" | 44 | #include "cmtp.h" |
45 | 45 | ||
46 | #ifndef CONFIG_BT_CMTP_DEBUG | ||
47 | #undef BT_DBG | ||
48 | #define BT_DBG(D...) | ||
49 | #endif | ||
50 | |||
51 | static int cmtp_sock_release(struct socket *sock) | 46 | static int cmtp_sock_release(struct socket *sock) |
52 | { | 47 | { |
53 | struct sock *sk = sock->sk; | 48 | struct sock *sk = sock->sk; |
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index b7002429f152..a4a789f24c8d 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -45,11 +45,6 @@ | |||
45 | #include <net/bluetooth/bluetooth.h> | 45 | #include <net/bluetooth/bluetooth.h> |
46 | #include <net/bluetooth/hci_core.h> | 46 | #include <net/bluetooth/hci_core.h> |
47 | 47 | ||
48 | #ifndef CONFIG_BT_HCI_CORE_DEBUG | ||
49 | #undef BT_DBG | ||
50 | #define BT_DBG(D...) | ||
51 | #endif | ||
52 | |||
53 | void hci_acl_connect(struct hci_conn *conn) | 48 | void hci_acl_connect(struct hci_conn *conn) |
54 | { | 49 | { |
55 | struct hci_dev *hdev = conn->hdev; | 50 | struct hci_dev *hdev = conn->hdev; |
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index fa7c5370b556..ba78cc1eb8d9 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -48,11 +48,6 @@ | |||
48 | #include <net/bluetooth/bluetooth.h> | 48 | #include <net/bluetooth/bluetooth.h> |
49 | #include <net/bluetooth/hci_core.h> | 49 | #include <net/bluetooth/hci_core.h> |
50 | 50 | ||
51 | #ifndef CONFIG_BT_HCI_CORE_DEBUG | ||
52 | #undef BT_DBG | ||
53 | #define BT_DBG(D...) | ||
54 | #endif | ||
55 | |||
56 | static void hci_cmd_task(unsigned long arg); | 51 | static void hci_cmd_task(unsigned long arg); |
57 | static void hci_rx_task(unsigned long arg); | 52 | static void hci_rx_task(unsigned long arg); |
58 | static void hci_tx_task(unsigned long arg); | 53 | static void hci_tx_task(unsigned long arg); |
@@ -290,7 +285,7 @@ static void hci_linkpol_req(struct hci_dev *hdev, unsigned long opt) | |||
290 | { | 285 | { |
291 | __le16 policy = cpu_to_le16(opt); | 286 | __le16 policy = cpu_to_le16(opt); |
292 | 287 | ||
293 | BT_DBG("%s %x", hdev->name, opt); | 288 | BT_DBG("%s %x", hdev->name, policy); |
294 | 289 | ||
295 | /* Default link policy */ | 290 | /* Default link policy */ |
296 | hci_send_cmd(hdev, HCI_OP_WRITE_DEF_LINK_POLICY, 2, &policy); | 291 | hci_send_cmd(hdev, HCI_OP_WRITE_DEF_LINK_POLICY, 2, &policy); |
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index ad7a553d7713..f91ba690f5d2 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -45,11 +45,6 @@ | |||
45 | #include <net/bluetooth/bluetooth.h> | 45 | #include <net/bluetooth/bluetooth.h> |
46 | #include <net/bluetooth/hci_core.h> | 46 | #include <net/bluetooth/hci_core.h> |
47 | 47 | ||
48 | #ifndef CONFIG_BT_HCI_CORE_DEBUG | ||
49 | #undef BT_DBG | ||
50 | #define BT_DBG(D...) | ||
51 | #endif | ||
52 | |||
53 | /* Handle HCI Event packets */ | 48 | /* Handle HCI Event packets */ |
54 | 49 | ||
55 | static void hci_cc_inquiry_cancel(struct hci_dev *hdev, struct sk_buff *skb) | 50 | static void hci_cc_inquiry_cancel(struct hci_dev *hdev, struct sk_buff *skb) |
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c index d62579b67959..4f9621f759a0 100644 --- a/net/bluetooth/hci_sock.c +++ b/net/bluetooth/hci_sock.c | |||
@@ -49,11 +49,6 @@ | |||
49 | #include <net/bluetooth/bluetooth.h> | 49 | #include <net/bluetooth/bluetooth.h> |
50 | #include <net/bluetooth/hci_core.h> | 50 | #include <net/bluetooth/hci_core.h> |
51 | 51 | ||
52 | #ifndef CONFIG_BT_HCI_SOCK_DEBUG | ||
53 | #undef BT_DBG | ||
54 | #define BT_DBG(D...) | ||
55 | #endif | ||
56 | |||
57 | /* ----- HCI socket interface ----- */ | 52 | /* ----- HCI socket interface ----- */ |
58 | 53 | ||
59 | static inline int hci_test_bit(int nr, void *addr) | 54 | static inline int hci_test_bit(int nr, void *addr) |
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index f2bbb2f65434..6490bf8402f3 100644 --- a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c | |||
@@ -6,11 +6,6 @@ | |||
6 | #include <net/bluetooth/bluetooth.h> | 6 | #include <net/bluetooth/bluetooth.h> |
7 | #include <net/bluetooth/hci_core.h> | 7 | #include <net/bluetooth/hci_core.h> |
8 | 8 | ||
9 | #ifndef CONFIG_BT_HCI_CORE_DEBUG | ||
10 | #undef BT_DBG | ||
11 | #define BT_DBG(D...) | ||
12 | #endif | ||
13 | |||
14 | struct class *bt_class = NULL; | 9 | struct class *bt_class = NULL; |
15 | EXPORT_SYMBOL_GPL(bt_class); | 10 | EXPORT_SYMBOL_GPL(bt_class); |
16 | 11 | ||
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index acdeab3d9807..b18676870d55 100644 --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c | |||
@@ -47,11 +47,6 @@ | |||
47 | 47 | ||
48 | #include "hidp.h" | 48 | #include "hidp.h" |
49 | 49 | ||
50 | #ifndef CONFIG_BT_HIDP_DEBUG | ||
51 | #undef BT_DBG | ||
52 | #define BT_DBG(D...) | ||
53 | #endif | ||
54 | |||
55 | #define VERSION "1.2" | 50 | #define VERSION "1.2" |
56 | 51 | ||
57 | static DECLARE_RWSEM(hidp_session_sem); | 52 | static DECLARE_RWSEM(hidp_session_sem); |
diff --git a/net/bluetooth/hidp/sock.c b/net/bluetooth/hidp/sock.c index f4dd02ca9a96..37c9d7d2e688 100644 --- a/net/bluetooth/hidp/sock.c +++ b/net/bluetooth/hidp/sock.c | |||
@@ -39,11 +39,6 @@ | |||
39 | 39 | ||
40 | #include "hidp.h" | 40 | #include "hidp.h" |
41 | 41 | ||
42 | #ifndef CONFIG_BT_HIDP_DEBUG | ||
43 | #undef BT_DBG | ||
44 | #define BT_DBG(D...) | ||
45 | #endif | ||
46 | |||
47 | static int hidp_sock_release(struct socket *sock) | 42 | static int hidp_sock_release(struct socket *sock) |
48 | { | 43 | { |
49 | struct sock *sk = sock->sk; | 44 | struct sock *sk = sock->sk; |
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 9610a9c85b98..b93748e224ff 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -50,11 +50,6 @@ | |||
50 | #include <net/bluetooth/hci_core.h> | 50 | #include <net/bluetooth/hci_core.h> |
51 | #include <net/bluetooth/l2cap.h> | 51 | #include <net/bluetooth/l2cap.h> |
52 | 52 | ||
53 | #ifndef CONFIG_BT_L2CAP_DEBUG | ||
54 | #undef BT_DBG | ||
55 | #define BT_DBG(D...) | ||
56 | #endif | ||
57 | |||
58 | #define VERSION "2.11" | 53 | #define VERSION "2.11" |
59 | 54 | ||
60 | static u32 l2cap_feat_mask = 0x0000; | 55 | static u32 l2cap_feat_mask = 0x0000; |
diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c index ba537fae0a4c..37c640d1c3fd 100644 --- a/net/bluetooth/rfcomm/core.c +++ b/net/bluetooth/rfcomm/core.c | |||
@@ -46,11 +46,6 @@ | |||
46 | #include <net/bluetooth/l2cap.h> | 46 | #include <net/bluetooth/l2cap.h> |
47 | #include <net/bluetooth/rfcomm.h> | 47 | #include <net/bluetooth/rfcomm.h> |
48 | 48 | ||
49 | #ifndef CONFIG_BT_RFCOMM_DEBUG | ||
50 | #undef BT_DBG | ||
51 | #define BT_DBG(D...) | ||
52 | #endif | ||
53 | |||
54 | #define VERSION "1.10" | 49 | #define VERSION "1.10" |
55 | 50 | ||
56 | static int disable_cfc = 0; | 51 | static int disable_cfc = 0; |
diff --git a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/rfcomm/sock.c index bc0d4a7ce6ae..ad00cbf449cb 100644 --- a/net/bluetooth/rfcomm/sock.c +++ b/net/bluetooth/rfcomm/sock.c | |||
@@ -50,11 +50,6 @@ | |||
50 | #include <net/bluetooth/l2cap.h> | 50 | #include <net/bluetooth/l2cap.h> |
51 | #include <net/bluetooth/rfcomm.h> | 51 | #include <net/bluetooth/rfcomm.h> |
52 | 52 | ||
53 | #ifndef CONFIG_BT_RFCOMM_DEBUG | ||
54 | #undef BT_DBG | ||
55 | #define BT_DBG(D...) | ||
56 | #endif | ||
57 | |||
58 | static const struct proto_ops rfcomm_sock_ops; | 53 | static const struct proto_ops rfcomm_sock_ops; |
59 | 54 | ||
60 | static struct bt_sock_list rfcomm_sk_list = { | 55 | static struct bt_sock_list rfcomm_sk_list = { |
@@ -644,7 +639,7 @@ static int rfcomm_sock_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
644 | 639 | ||
645 | msg->msg_namelen = 0; | 640 | msg->msg_namelen = 0; |
646 | 641 | ||
647 | BT_DBG("sk %p size %d", sk, size); | 642 | BT_DBG("sk %p size %zu", sk, size); |
648 | 643 | ||
649 | lock_sock(sk); | 644 | lock_sock(sk); |
650 | 645 | ||
diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c index d3340dd52bcf..1e4100bb0b65 100644 --- a/net/bluetooth/rfcomm/tty.c +++ b/net/bluetooth/rfcomm/tty.c | |||
@@ -39,11 +39,6 @@ | |||
39 | #include <net/bluetooth/hci_core.h> | 39 | #include <net/bluetooth/hci_core.h> |
40 | #include <net/bluetooth/rfcomm.h> | 40 | #include <net/bluetooth/rfcomm.h> |
41 | 41 | ||
42 | #ifndef CONFIG_BT_RFCOMM_DEBUG | ||
43 | #undef BT_DBG | ||
44 | #define BT_DBG(D...) | ||
45 | #endif | ||
46 | |||
47 | #define RFCOMM_TTY_MAGIC 0x6d02 /* magic number for rfcomm struct */ | 42 | #define RFCOMM_TTY_MAGIC 0x6d02 /* magic number for rfcomm struct */ |
48 | #define RFCOMM_TTY_PORTS RFCOMM_MAX_DEV /* whole lotta rfcomm devices */ | 43 | #define RFCOMM_TTY_PORTS RFCOMM_MAX_DEV /* whole lotta rfcomm devices */ |
49 | #define RFCOMM_TTY_MAJOR 216 /* device node major id of the usb/bluetooth.c driver */ | 44 | #define RFCOMM_TTY_MAJOR 216 /* device node major id of the usb/bluetooth.c driver */ |
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index 0cc91e6da76d..46fd8bf9a690 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c | |||
@@ -48,11 +48,6 @@ | |||
48 | #include <net/bluetooth/hci_core.h> | 48 | #include <net/bluetooth/hci_core.h> |
49 | #include <net/bluetooth/sco.h> | 49 | #include <net/bluetooth/sco.h> |
50 | 50 | ||
51 | #ifndef CONFIG_BT_SCO_DEBUG | ||
52 | #undef BT_DBG | ||
53 | #define BT_DBG(D...) | ||
54 | #endif | ||
55 | |||
56 | #define VERSION "0.6" | 51 | #define VERSION "0.6" |
57 | 52 | ||
58 | static int disable_esco = 0; | 53 | static int disable_esco = 0; |