Commit 2cd2e1a7 authored by Christian Brauner's avatar Christian Brauner

m68k: switch to kernel_clone()

The old _do_fork() helper is removed in favor of the new kernel_clone() helper.
The latter adheres to naming conventions for kernel internal syscall helpers.
Signed-off-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Cc: Kars de Jong <jongk@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org
Link: https://lore.kernel.org/r/20200819104655.436656-5-christian.brauner@ubuntu.com
parent f8c40ebe
...@@ -107,10 +107,10 @@ void flush_thread(void) ...@@ -107,10 +107,10 @@ void flush_thread(void)
* on top of pt_regs, which means that sys_clone() arguments would be * on top of pt_regs, which means that sys_clone() arguments would be
* buried. We could, of course, copy them, but it's too costly for no * buried. We could, of course, copy them, but it's too costly for no
* good reason - generic clone() would have to copy them *again* for * good reason - generic clone() would have to copy them *again* for
* _do_fork() anyway. So in this case it's actually better to pass pt_regs * * kernel_clone() anyway. So in this case it's actually better to pass pt_regs *
* and extract arguments for _do_fork() from there. Eventually we might * and extract arguments for kernel_clone() from there. Eventually we might
* go for calling _do_fork() directly from the wrapper, but only after we * go for calling kernel_clone() directly from the wrapper, but only after we
* are finished with _do_fork() prototype conversion. * are finished with kernel_clone() prototype conversion.
*/ */
asmlinkage int m68k_clone(struct pt_regs *regs) asmlinkage int m68k_clone(struct pt_regs *regs)
{ {
...@@ -125,7 +125,7 @@ asmlinkage int m68k_clone(struct pt_regs *regs) ...@@ -125,7 +125,7 @@ asmlinkage int m68k_clone(struct pt_regs *regs)
.tls = regs->d5, .tls = regs->d5,
}; };
return _do_fork(&args); return kernel_clone(&args);
} }
/* /*
......
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