Skip to content

Commit

Permalink
kernel: pid_namespace: remove unused set_memfd_noexec_scope()
Browse files Browse the repository at this point in the history
This inline function is unused, remove it.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: YueHaibing <[email protected]>
Cc: Jeff Xu <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Luis Chamberlain <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
YueHaibing authored and akpm00 committed Jun 19, 2023
1 parent 65ac132 commit 3efd33b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kernel/pid_sysctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3efd33b

Please sign in to comment.