]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fs/exec.c: make bprm_mm_init() static
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 20 Feb 2013 02:16:01 +0000 (13:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:37 +0000 (16:53 +1100)
There is only one user of bprm_mm_init, and it's inside the same file.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/exec.c
include/linux/binfmts.h

index 58841fec2fef92df2c55ca8d831bfb1fd1c06512..dc38755fe538fdc9b49820d484c6338fb9360d04 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -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;
index 0530b9860359afb26cfb8a2a05ed7ec0a4c2169a..c3a09149f7939c8e44c28b1984700daad21e1e23 100644 (file)
@@ -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);