Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp370833pxa; Wed, 19 Aug 2020 03:51:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFmJYeX8IkeYsANha06Vi5rsZySeCkjDUGz8DmNpbjpdqw3p6pRbCNlrO7ZRoOylI/niMf X-Received: by 2002:aa7:da52:: with SMTP id w18mr24955653eds.367.1597834284222; Wed, 19 Aug 2020 03:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597834284; cv=none; d=google.com; s=arc-20160816; b=NNu6+xwrhdJDhFpAhq6zRSaU9T5QG03UDuilgawrQlg+OJQq9/pRD3fVxBpn5xdzwI s2dNOmtEPayBxqs5uLd7mljOV/sRJnWr1vx0DAFH/qkJCmXXEBhB9zzIKNK67snBcrrS vKqxOyjUioBPrSVyhCQSbXNLE3OxJVk6NQ9Li+E5Uh7VwHTjiwvuyK+OaUevaUp0isGx LkAmtOAt2iDPZgP1CQF5iTZBoqycvQSWOMhWgZr8jNaNvLC22tQMMBfjVEVEc96s5KJ5 lX2wrWvIi5uYac6KZQMdxw4XF/awVeW5cSuLug+galFTcIYuI6ei/U6t0qnFXe6ZCSe7 Dirw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9bAEGcngIGcd3tMzAzV++HvnoYgvTnoqrT50zH5LrAw=; b=PMvILbn7aUmFK+dYQbfNpil33gep3goEh4jXZ/QNNReR0uxDOOvPca3aO5QBwHS29K Vpu2HsbOzkej8GsUz04DUuX5PiQ1AA0/46FMBEURf6et6u2dVK3pXQ4LZTrd+8wlHx/b xgWp+cDBtnyodR7X05rEy429UqZK8aikyvSc8zQ6Q7JtPyT0xrR85nxZJrU9ql0hshD6 CeOcvc1AhgXvNKR9ifNyCqHbrq3KVDLWlLh2jk7RgKdnL3rwEghxCsjDdA9tWj4zgYUU umFHnKjC6kcVEfEZGU96BWk4ZuicXPzQFptMjrU93kF5d7E+7GikhwR+l9bpyUIh3jQQ Ec3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si14591360eds.102.2020.08.19.03.51.00; Wed, 19 Aug 2020 03:51:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728055AbgHSKuL (ORCPT + 99 others); Wed, 19 Aug 2020 06:50:11 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:53981 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727827AbgHSKrc (ORCPT ); Wed, 19 Aug 2020 06:47:32 -0400 Received: from ip5f5af70b.dynamic.kabel-deutschland.de ([95.90.247.11] helo=wittgenstein.fritz.box) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1k8Lcv-0006IE-4i; Wed, 19 Aug 2020 10:47:29 +0000 From: Christian Brauner To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jonathan Corbet , Yoshinori Sato , Tony Luck , Fenghua Yu , Geert Uytterhoeven , Ley Foon Tan , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Arnd Bergmann , Steven Rostedt , Stafford Horne , Peter Zijlstra , Kars de Jong , Kees Cook , Greentime Hu , "Eric W. Biederman" , Mauro Carvalho Chehab , Alexandre Chartre , Masami Hiramatsu , Tom Zanussi , Xiao Yang , linux-doc@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, sparclinux@vger.kernel.org, kgdb-bugreport@lists.sourceforge.net, linux-kselftest@vger.kernel.org, Linus Torvalds , Christoph Hewllig , Matthew Wilcox , Christian Brauner Subject: [PATCH v2 04/11] m68k: switch to kernel_clone() Date: Wed, 19 Aug 2020 12:46:48 +0200 Message-Id: <20200819104655.436656-5-christian.brauner@ubuntu.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200819104655.436656-1-christian.brauner@ubuntu.com> References: <20200819104655.436656-1-christian.brauner@ubuntu.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Acked-by: Geert Uytterhoeven Cc: Kars de Jong Cc: linux-m68k@lists.linux-m68k.org Signed-off-by: Christian Brauner --- /* v2 */ unchanged --- arch/m68k/kernel/process.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/m68k/kernel/process.c b/arch/m68k/kernel/process.c index 6492a2c54dbc..08359a6e058f 100644 --- a/arch/m68k/kernel/process.c +++ b/arch/m68k/kernel/process.c @@ -107,10 +107,10 @@ void flush_thread(void) * 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 * 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 * - * and extract arguments for _do_fork() from there. Eventually we might - * go for calling _do_fork() directly from the wrapper, but only after we - * are finished with _do_fork() prototype conversion. + * kernel_clone() anyway. So in this case it's actually better to pass pt_regs * + * and extract arguments for kernel_clone() from there. Eventually we might + * go for calling kernel_clone() directly from the wrapper, but only after we + * are finished with kernel_clone() prototype conversion. */ asmlinkage int m68k_clone(struct pt_regs *regs) { @@ -125,7 +125,7 @@ asmlinkage int m68k_clone(struct pt_regs *regs) .tls = regs->d5, }; - return _do_fork(&args); + return kernel_clone(&args); } /* -- 2.28.0