summaryrefslogtreecommitdiffstats
path: root/kernel/pid_sysctl.h
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2023-06-10 18:28:58 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-06-19 16:19:28 -0700
commit3efd33b75358185ac9f45cfc189e20712be3570b (patch)
treee4d4a0337f41f8deeba80b1938bceb29f952cd7b /kernel/pid_sysctl.h
parent65ac132027a884c411b8f9f96d240ba2dde34dec (diff)
downloadlinux-3efd33b75358185ac9f45cfc189e20712be3570b.tar.gz
linux-3efd33b75358185ac9f45cfc189e20712be3570b.tar.bz2
linux-3efd33b75358185ac9f45cfc189e20712be3570b.zip
kernel: pid_namespace: remove unused set_memfd_noexec_scope()
This inline function is unused, remove it. Link: https://lkml.kernel.org/r/20230610102858.31488-1-yuehaibing@huawei.com Signed-off-by: YueHaibing <yuehaibing@huawei.com> Cc: Jeff Xu <jeffxu@google.com> Cc: Kees Cook <keescook@chromium.org> Cc: Luis Chamberlain <mcgrof@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel/pid_sysctl.h')
-rw-r--r--kernel/pid_sysctl.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/pid_sysctl.h b/kernel/pid_sysctl.h
index d67a4d45bb42..b26e027fc9cd 100644
--- a/kernel/pid_sysctl.h
+++ b/kernel/pid_sysctl.h
@@ -52,7 +52,6 @@ static inline void register_pid_ns_sysctl_table_vm(void)
}
#else
static inline void initialize_memfd_noexec_scope(struct pid_namespace *ns) {}
-static inline void set_memfd_noexec_scope(struct pid_namespace *ns) {}
static inline void register_pid_ns_sysctl_table_vm(void) {}
#endif