exec: let bprm_mm_init() be static
Subsystems (3)
PATCH 1/1 exec: let bprm_mm_init() be static
There is only one user of bprm_mm_init, and it's inside the same file. So, let it be static.
Cc Andrew Morton <[email protected]>
Cc Al Viro <[email protected]>
Signed-off-by Yuanhan Liu <[email protected]>
--- fs/exec.c | 2 +- include/linux/binfmts.h | 1 - 2 files changed, 1 insertions(+), 2 deletions(-)
fs/exec.c +1 -1
@@ -355,7 +355,7 @@ static bool valid_arg_len(struct linux_binprm *bprm, long len)* flags, permissions, and offset, so we use temporary values. We'll update * them later in setup_arg_pages(). */ -int bprm_mm_init (struct linux_binprm *bprm) +static int bprm_mm_init (struct linux_binprm *bprm) {int err;struct mm_struct *mm =NULL ;
include/linux/binfmts.h +0 -1
@@ -111,7 +111,6 @@ extern int suid_dumpable;extern int setup_arg_pages (struct linux_binprm * bprm,unsigned long stack_top,int executable_stack); -extern int bprm_mm_init (struct linux_binprm *bprm);extern int bprm_change_interp (char *interp,struct linux_binprm *bprm);extern int copy_strings_kernel (int argc,const char *const *argv,struct linux_binprm *bprm);
Signature · 7 lines
1.7.7.6 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>