Skip to contentSkip to conversation

+ kernel-forkc-make-dup_mm-static.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Nov 27, 2013

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + kernel-forkc-make-dup_mm-static.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Wed, 27 Nov 2013 15:29:53 -0800

The patch titled
Subject: kernel/fork.c: make dup_mm() static
has been added to the -mm tree. Its filename is
kernel-forkc-make-dup_mm-static.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/kernel-forkc-make-dup_mm-static.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/kernel-forkc-make-dup_mm-static.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Daeseok Youn <[email protected]>
Subject: kernel/fork.c: make dup_mm() static

dup_mm() function is used only in kernel/fork.c

---

 include/linux/sched.h |    2 --
 kernel/fork.c         |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)
include/linux/sched.h renamed from include/linux/sched.h~kernel-forkc-make-dup_mm-static +0 -2
diff -puN include/linux/sched.h~kernel-forkc-make-dup_mm-static include/linux/sched.h
@@ -2177,8 +2177,6 @@ extern struct mm_struct *get_task_mm(str
 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 *);
kernel/fork.c renamed from kernel/fork.c~kernel-forkc-make-dup_mm-static +1 -1
diff -puN kernel/fork.c~kernel-forkc-make-dup_mm-static kernel/fork.c
@@ -799,7 +799,7 @@ void mm_release(struct task_struct *tsk,
  * 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;

_

Patches currently in -mm which might be from [email protected] are

kernel-forkc-make-dup_mm-static.patch