[PATCH -next] kernel: pid_namespace: Remove unused set_memfd_noexec_scope()

From: YueHaibing
Date: Sat Jun 10 2023 - 06:29:26 EST


This inline function is unused, remove it.

Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
---
kernel/pid_sysctl.h | 1 -
1 file changed, 1 deletion(-)

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

--
2.34.1