Merge tag 'perf-tools-fixes-for-v6.4-2-2023-05-30' of git://git.kernel.org/pub/scm...
[platform/kernel/linux-starfive.git] / kernel / pid_sysctl.h
index e22d072..d67a4d4 100644 (file)
@@ -46,10 +46,9 @@ static struct ctl_table pid_ns_ctl_table_vm[] = {
        },
        { }
 };
-static struct ctl_path vm_path[] = { { .procname = "vm", }, { } };
 static inline void register_pid_ns_sysctl_table_vm(void)
 {
-       register_sysctl_paths(vm_path, pid_ns_ctl_table_vm);
+       register_sysctl("vm", pid_ns_ctl_table_vm);
 }
 #else
 static inline void initialize_memfd_noexec_scope(struct pid_namespace *ns) {}