From: DaeSeok Youn Date: Fri, 3 Jan 2014 03:10:30 +0000 (+1100) Subject: kernel/fork.c: make dup_mm() static X-Git-Tag: next-20140106~2^2~33 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8e2a84dcf685bfb48c29c47b1708e94c948be1a3;p=karo-tx-linux.git kernel/fork.c: make dup_mm() static dup_mm() function is used only in kernel/fork.c Signed-off-by: Daeseok Youn Signed-off-by: Andrew Morton --- diff --git a/include/linux/sched.h b/include/linux/sched.h index 4b6c89635802..48bd0303dd91 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -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 *); diff --git a/kernel/fork.c b/kernel/fork.c index d11e525bc642..1fcc657d8826 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -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;