Commit ff252c1f authored by DaeSeok Youn's avatar DaeSeok Youn Committed by Linus Torvalds

kernel/fork.c: make dup_mm() static

dup_mm() is used only in kernel/fork.c
Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent abaf3787
...@@ -2295,8 +2295,6 @@ extern struct mm_struct *get_task_mm(struct task_struct *task); ...@@ -2295,8 +2295,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); extern struct mm_struct *mm_access(struct task_struct *task, unsigned int mode);
/* Remove the current tasks stale references to the old mm_struct */ /* Remove the current tasks stale references to the old mm_struct */
extern void mm_release(struct task_struct *, struct 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, extern int copy_thread(unsigned long, unsigned long, unsigned long,
struct task_struct *); struct task_struct *);
......
...@@ -800,7 +800,7 @@ void mm_release(struct task_struct *tsk, struct mm_struct *mm) ...@@ -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 * Allocate a new mm structure and copy contents from the
* mm structure of the passed in task structure. * 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; struct mm_struct *mm, *oldmm = current->mm;
int err; int err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment