]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kernel/fork.c: make dup_mm() static
authorDaeSeok Youn <daeseok.youn@gmail.com>
Fri, 3 Jan 2014 03:10:30 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:30 +0000 (14:10 +1100)
dup_mm() function is used only in kernel/fork.c

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/sched.h
kernel/fork.c

index 4b6c8963580273edc826652aa708e6df3376f8fc..48bd0303dd91f03fc95f2689a72af5a7b8262fd4 100644 (file)
@@ -2177,8 +2177,6 @@ extern struct mm_struct *get_task_mm(struct task_struct *task);
 extern struct mm_struct *mm_access(struct task_struct *task, unsigned int mode);
 /* Remove the current tasks stale references to the old mm_struct */
 extern void mm_release(struct task_struct *, struct mm_struct *);
-/* Allocate a new mm structure and copy contents from tsk->mm */
-extern struct mm_struct *dup_mm(struct task_struct *tsk);
 
 extern int copy_thread(unsigned long, unsigned long, unsigned long,
                        struct task_struct *);
index d11e525bc642c384a85a950db3c914e61e3d6ea1..1fcc657d8826d1215269890bbb2ec760937273b5 100644 (file)
@@ -800,7 +800,7 @@ void mm_release(struct task_struct *tsk, struct mm_struct *mm)
  * Allocate a new mm structure and copy contents from the
  * mm structure of the passed in task structure.
  */
-struct mm_struct *dup_mm(struct task_struct *tsk)
+static struct mm_struct *dup_mm(struct task_struct *tsk)
 {
        struct mm_struct *mm, *oldmm = current->mm;
        int err;