]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86_64/kernel/vsyscall.c
[PATCH] sysctl: remove insert_at_head from register_sysctl
[karo-tx-linux.git] / arch / x86_64 / kernel / vsyscall.c
index 4a673f5397a05fbbf5aec90b5067bbafcd8e1ad5..313dc6ad780b1734aa9e10b41030835b14b4147e 100644 (file)
@@ -225,8 +225,7 @@ out:
 
 static int vsyscall_sysctl_nostrat(ctl_table *t, int __user *name, int nlen,
                                void __user *oldval, size_t __user *oldlenp,
-                               void __user *newval, size_t newlen,
-                               void **context)
+                               void __user *newval, size_t newlen)
 {
        return -ENOSYS;
 }
@@ -236,13 +235,13 @@ static ctl_table kernel_table2[] = {
          .data = &sysctl_vsyscall, .maxlen = sizeof(int), .mode = 0644,
          .strategy = vsyscall_sysctl_nostrat,
          .proc_handler = vsyscall_sysctl_change },
-       { 0, }
+       {}
 };
 
 static ctl_table kernel_root_table2[] = {
        { .ctl_name = CTL_KERN, .procname = "kernel", .mode = 0555,
          .child = kernel_table2 },
-       { 0 },
+       {}
 };
 
 #endif
@@ -302,7 +301,7 @@ static int __init vsyscall_init(void)
        BUG_ON((unsigned long) &vgetcpu != VSYSCALL_ADDR(__NR_vgetcpu));
        map_vsyscall();
 #ifdef CONFIG_SYSCTL
-       register_sysctl_table(kernel_root_table2, 0);
+       register_sysctl_table(kernel_root_table2);
 #endif
        on_each_cpu(cpu_vsyscall_init, NULL, 0, 1);
        hotcpu_notifier(cpu_vsyscall_notifier, 0);