sysctl: pass kernel pointers to ->proc_handler
[linux-2.6-microblaze.git] / net / sctp / sysctl.c
index 4740aa7..c16c809 100644 (file)
@@ -43,20 +43,15 @@ static unsigned long max_autoclose_max =
        ? UINT_MAX : MAX_SCHEDULE_TIMEOUT / HZ;
 
 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write,
-                               void __user *buffer, size_t *lenp,
-                               loff_t *ppos);
+                                void *buffer, size_t *lenp, loff_t *ppos);
 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write,
-                               void __user *buffer, size_t *lenp,
-                               loff_t *ppos);
-static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write,
-                               void __user *buffer, size_t *lenp,
-                               loff_t *ppos);
+                               void *buffer, size_t *lenp, loff_t *ppos);
+static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write, void *buffer,
+                               size_t *lenp, loff_t *ppos);
 static int proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write,
-                                  void __user *buffer, size_t *lenp,
-                                  loff_t *ppos);
+                                  void *buffer, size_t *lenp, loff_t *ppos);
 static int proc_sctp_do_auth(struct ctl_table *ctl, int write,
-                            void __user *buffer, size_t *lenp,
-                            loff_t *ppos);
+                            void *buffer, size_t *lenp, loff_t *ppos);
 
 static struct ctl_table sctp_table[] = {
        {
@@ -343,8 +338,7 @@ static struct ctl_table sctp_net_table[] = {
 };
 
 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write,
-                               void __user *buffer, size_t *lenp,
-                               loff_t *ppos)
+                                void *buffer, size_t *lenp, loff_t *ppos)
 {
        struct net *net = current->nsproxy->net_ns;
        struct ctl_table tbl;
@@ -389,8 +383,7 @@ static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write,
 }
 
 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write,
-                               void __user *buffer, size_t *lenp,
-                               loff_t *ppos)
+                               void *buffer, size_t *lenp, loff_t *ppos)
 {
        struct net *net = current->nsproxy->net_ns;
        unsigned int min = *(unsigned int *) ctl->extra1;
@@ -418,8 +411,7 @@ static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write,
 }
 
 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write,
-                               void __user *buffer, size_t *lenp,
-                               loff_t *ppos)
+                               void *buffer, size_t *lenp, loff_t *ppos)
 {
        struct net *net = current->nsproxy->net_ns;
        unsigned int min = *(unsigned int *) ctl->extra1;
@@ -447,8 +439,7 @@ static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write,
 }
 
 static int proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write,
-                                  void __user *buffer, size_t *lenp,
-                                  loff_t *ppos)
+                                  void *buffer, size_t *lenp, loff_t *ppos)
 {
        if (write)
                pr_warn_once("Changing rto_alpha or rto_beta may lead to "
@@ -458,8 +449,7 @@ static int proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write,
 }
 
 static int proc_sctp_do_auth(struct ctl_table *ctl, int write,
-                            void __user *buffer, size_t *lenp,
-                            loff_t *ppos)
+                            void *buffer, size_t *lenp, loff_t *ppos)
 {
        struct net *net = current->nsproxy->net_ns;
        struct ctl_table tbl;