diff options
Diffstat (limited to 'include/net/bluetooth/l2cap.h')
| -rw-r--r-- | include/net/bluetooth/l2cap.h | 17 | 
1 files changed, 2 insertions, 15 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index a7679f8913d..d206296137e 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h @@ -671,20 +671,8 @@ enum {  	L2CAP_EV_RECV_FRAME,  }; -static inline void l2cap_chan_hold(struct l2cap_chan *c) -{ -	BT_DBG("chan %p orig refcnt %d", c, atomic_read(&c->refcnt)); - -	atomic_inc(&c->refcnt); -} - -static inline void l2cap_chan_put(struct l2cap_chan *c) -{ -	BT_DBG("chan %p orig refcnt %d", c, atomic_read(&c->refcnt)); - -	if (atomic_dec_and_test(&c->refcnt)) -		kfree(c); -} +void l2cap_chan_hold(struct l2cap_chan *c); +void l2cap_chan_put(struct l2cap_chan *c);  static inline void l2cap_chan_lock(struct l2cap_chan *chan)  { @@ -771,7 +759,6 @@ int l2cap_add_scid(struct l2cap_chan *chan,  __u16 scid);  struct l2cap_chan *l2cap_chan_create(void);  void l2cap_chan_close(struct l2cap_chan *chan, int reason); -void l2cap_chan_destroy(struct l2cap_chan *chan);  int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid,  		       bdaddr_t *dst, u8 dst_type);  int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len,  |