diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2017-12-22 12:07:34 +0000 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2018-09-18 17:15:11 +0200 |
commit | 69ff0b5709d0d06545fcb2d08c7645b56d3687dd (patch) | |
tree | 71f1569cc019e16c1b1be22c1e8d382766daebb3 /net/bluetooth/af_bluetooth.c | |
parent | d6a47bfb72f495a72637fbe635220f6af0f4cb6f (diff) |
backports: bluetooth: Support 4.9 kernels
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'net/bluetooth/af_bluetooth.c')
-rw-r--r-- | net/bluetooth/af_bluetooth.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c index 3264e18..77a68c0 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> @@ -649,7 +650,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)), @@ -679,8 +680,9 @@ int bt_procfs_init(struct net *net, const char *name, { sk_list->custom_seq_show = seq_show; - if (!proc_create_seq_data(name, 0, net->proc_net, &bt_seq_ops, sk_list)) - return -ENOMEM; + /*TODO: FIXME */ + //if (!proc_create_seq_data(name, 0, net->proc_net, &bt_seq_ops, sk_list)) + // return -ENOMEM; return 0; } |