sysctl: pass kernel pointers to ->proc_handler
[linux-block.git] / net / rds / tcp.c
index 66121bc6f34efe44d66c2940a35f8e1fae274682..46782fac4c162102fee2231a10d4197e8b3545d0 100644 (file)
@@ -62,8 +62,7 @@ static atomic_t rds_tcp_unloading = ATOMIC_INIT(0);
 static struct kmem_cache *rds_tcp_conn_slab;
 
 static int rds_tcp_skbuf_handler(struct ctl_table *ctl, int write,
-                                void __user *buffer, size_t *lenp,
-                                loff_t *fpos);
+                                void *buffer, size_t *lenp, loff_t *fpos);
 
 static int rds_tcp_min_sndbuf = SOCK_MIN_SNDBUF;
 static int rds_tcp_min_rcvbuf = SOCK_MIN_RCVBUF;
@@ -676,8 +675,7 @@ static void rds_tcp_sysctl_reset(struct net *net)
 }
 
 static int rds_tcp_skbuf_handler(struct ctl_table *ctl, int write,
-                                void __user *buffer, size_t *lenp,
-                                loff_t *fpos)
+                                void *buffer, size_t *lenp, loff_t *fpos)
 {
        struct net *net = current->nsproxy->net_ns;
        int err;