projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bluetooth: Remove unnecessary headers include
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
net
/
bluetooth
/
rfcomm
/
core.c
diff --git
a/net/bluetooth/rfcomm/core.c
b/net/bluetooth/rfcomm/core.c
index 8a602388f1e73c185aa24499e9ff636c9358fcee..c75107ef89204877315ea8d61248c2fa4e2bddd2 100644
(file)
--- a/
net/bluetooth/rfcomm/core.c
+++ b/
net/bluetooth/rfcomm/core.c
@@
-26,22
+26,8
@@
*/
#include <linux/module.h>
*/
#include <linux/module.h>
-#include <linux/errno.h>
-#include <linux/kernel.h>
-#include <linux/sched.h>
-#include <linux/signal.h>
-#include <linux/init.h>
-#include <linux/wait.h>
-#include <linux/device.h>
#include <linux/debugfs.h>
#include <linux/debugfs.h>
-#include <linux/seq_file.h>
-#include <linux/net.h>
-#include <linux/mutex.h>
#include <linux/kthread.h>
#include <linux/kthread.h>
-#include <linux/slab.h>
-
-#include <net/sock.h>
-#include <linux/uaccess.h>
#include <asm/unaligned.h>
#include <net/bluetooth/bluetooth.h>
#include <asm/unaligned.h>
#include <net/bluetooth/bluetooth.h>
@@
-115,14
+101,14
@@
static void rfcomm_session_del(struct rfcomm_session *s);
#define __get_rpn_stop_bits(line) (((line) >> 2) & 0x1)
#define __get_rpn_parity(line) (((line) >> 3) & 0x7)
#define __get_rpn_stop_bits(line) (((line) >> 2) & 0x1)
#define __get_rpn_parity(line) (((line) >> 3) & 0x7)
-static
inline
void rfcomm_schedule(void)
+static void rfcomm_schedule(void)
{
if (!rfcomm_thread)
return;
wake_up_process(rfcomm_thread);
}
{
if (!rfcomm_thread)
return;
wake_up_process(rfcomm_thread);
}
-static
inline
void rfcomm_session_put(struct rfcomm_session *s)
+static void rfcomm_session_put(struct rfcomm_session *s)
{
if (atomic_dec_and_test(&s->refcnt))
rfcomm_session_del(s);
{
if (atomic_dec_and_test(&s->refcnt))
rfcomm_session_del(s);
@@
-227,7
+213,7
@@
static int rfcomm_l2sock_create(struct socket **sock)
return err;
}
return err;
}
-static in
line in
t rfcomm_check_security(struct rfcomm_dlc *d)
+static int rfcomm_check_security(struct rfcomm_dlc *d)
{
struct sock *sk = d->session->sock->sk;
struct l2cap_conn *conn = l2cap_pi(sk)->chan->conn;
{
struct sock *sk = d->session->sock->sk;
struct l2cap_conn *conn = l2cap_pi(sk)->chan->conn;
@@
-1750,7
+1736,7
@@
static void rfcomm_process_connect(struct rfcomm_session *s)
/* Send data queued for the DLC.
* Return number of frames left in the queue.
*/
/* Send data queued for the DLC.
* Return number of frames left in the queue.
*/
-static in
line in
t rfcomm_process_tx(struct rfcomm_dlc *d)
+static int rfcomm_process_tx(struct rfcomm_dlc *d)
{
struct sk_buff *skb;
int err;
{
struct sk_buff *skb;
int err;
@@
-1798,7
+1784,7
@@
static inline int rfcomm_process_tx(struct rfcomm_dlc *d)
return skb_queue_len(&d->tx_queue);
}
return skb_queue_len(&d->tx_queue);
}
-static
inline
void rfcomm_process_dlcs(struct rfcomm_session *s)
+static void rfcomm_process_dlcs(struct rfcomm_session *s)
{
struct rfcomm_dlc *d;
struct list_head *p, *n;
{
struct rfcomm_dlc *d;
struct list_head *p, *n;
@@
-1858,7
+1844,7
@@
static inline void rfcomm_process_dlcs(struct rfcomm_session *s)
}
}
}
}
-static
inline
void rfcomm_process_rx(struct rfcomm_session *s)
+static void rfcomm_process_rx(struct rfcomm_session *s)
{
struct socket *sock = s->sock;
struct sock *sk = sock->sk;
{
struct socket *sock = s->sock;
struct sock *sk = sock->sk;
@@
-1883,7
+1869,7
@@
static inline void rfcomm_process_rx(struct rfcomm_session *s)
}
}
}
}
-static
inline
void rfcomm_accept_connection(struct rfcomm_session *s)
+static void rfcomm_accept_connection(struct rfcomm_session *s)
{
struct socket *sock = s->sock, *nsock;
int err;
{
struct socket *sock = s->sock, *nsock;
int err;
@@
-1917,7
+1903,7
@@
static inline void rfcomm_accept_connection(struct rfcomm_session *s)
sock_release(nsock);
}
sock_release(nsock);
}
-static
inline
void rfcomm_check_connection(struct rfcomm_session *s)
+static void rfcomm_check_connection(struct rfcomm_session *s)
{
struct sock *sk = s->sock->sk;
{
struct sock *sk = s->sock->sk;
@@
-1941,7
+1927,7
@@
static inline void rfcomm_check_connection(struct rfcomm_session *s)
}
}
}
}
-static
inline
void rfcomm_process_sessions(void)
+static void rfcomm_process_sessions(void)
{
struct list_head *p, *n;
{
struct list_head *p, *n;