summaryrefslogtreecommitdiff
path: root/net/bluetooth/af_bluetooth.c
diff options
context:
space:
mode:
authorDominik Sliwa <dominik.sliwa@toradex.com>2017-12-22 12:07:34 +0000
committerDominik Sliwa <dominik.sliwa@toradex.com>2017-12-22 16:46:44 +0100
commit198e79f0e8f0b24c1e36ab6032d348f40de20262 (patch)
treed8dd6411978560fd0b6832761b085ac431253389 /net/bluetooth/af_bluetooth.c
parentc8beff5117bd4614be26bf28e97b885e8af42a67 (diff)
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'net/bluetooth/af_bluetooth.c')
-rw-r--r--net/bluetooth/af_bluetooth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c
index 91e3ba2..1c10269 100644
--- a/net/bluetooth/af_bluetooth.c
+++ b/net/bluetooth/af_bluetooth.c
@@ -28,6 +28,7 @@
#include <linux/debugfs.h>
#include <linux/stringify.h>
#include <linux/sched/signal.h>
+#include <linux/refcount.h>
#include <asm/ioctls.h>
@@ -657,7 +658,7 @@ static int bt_seq_show(struct seq_file *seq, void *v)
seq_printf(seq,
"%pK %-6d %-6u %-6u %-6u %-6lu %-6lu",
sk,
- refcount_read(&sk->sk_refcnt),
+ refcount_read((const refcount_t *)&sk->sk_refcnt),
sk_rmem_alloc_get(sk),
sk_wmem_alloc_get(sk),
from_kuid(seq_user_ns(seq), sock_i_uid(sk)),