Parm 'clone_flags' has not been used, remove it to make code clean.
CC: Andrew Morton <[email protected]>
CC: Al Viro <[email protected]>
CC: "Eric W. Biederman" <[email protected]>
CC: Oleg Nesterov <[email protected]>
CC: Srikar Dronamraju <[email protected]>
CC: Ingo Molnar <[email protected]>
CC: Peter Zijlstra <[email protected]>
Signed-off-by: Michael Wang <[email protected]>
---
kernel/fork.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/fork.c b/kernel/fork.c
index 457945f..3c2d8fd 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1070,7 +1070,7 @@ static int copy_signal(unsigned long clone_flags, struct
task_struct *tsk)
return 0;
}
-static void copy_flags(unsigned long clone_flags, struct task_struct *p)
+static void copy_flags(struct task_struct *p)
{
unsigned long new_flags = p->flags;
@@ -1223,7 +1223,7 @@ static struct task_struct *copy_process(unsigned long
clone_flags,
p->did_exec = 0;
delayacct_tsk_init(p); /* Must remain after dup_task_struct() */
- copy_flags(clone_flags, p);
+ copy_flags(p);
INIT_LIST_HEAD(&p->children);
INIT_LIST_HEAD(&p->sibling);
rcu_copy_process(p);
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/