提交 9cc64cea 编写于 作者: Y Yuanhan Liu 提交者: Al Viro

fs/exec.c: make bprm_mm_init() static

There is only one user of bprm_mm_init, and it's inside the same file.
Signed-off-by: NYuanhan Liu <yuanhan.liu@linux.intel.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 b24ae0b5
...@@ -355,7 +355,7 @@ static bool valid_arg_len(struct linux_binprm *bprm, long len) ...@@ -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 * flags, permissions, and offset, so we use temporary values. We'll update
* them later in setup_arg_pages(). * 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; int err;
struct mm_struct *mm = NULL; struct mm_struct *mm = NULL;
......
...@@ -111,7 +111,6 @@ extern int suid_dumpable; ...@@ -111,7 +111,6 @@ extern int suid_dumpable;
extern int setup_arg_pages(struct linux_binprm * bprm, extern int setup_arg_pages(struct linux_binprm * bprm,
unsigned long stack_top, unsigned long stack_top,
int executable_stack); 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 bprm_change_interp(char *interp, struct linux_binprm *bprm);
extern int copy_strings_kernel(int argc, const char *const *argv, extern int copy_strings_kernel(int argc, const char *const *argv,
struct linux_binprm *bprm); struct linux_binprm *bprm);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册