From patchwork Thu Sep 7 13:41:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137675 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp66303vqo; Thu, 7 Sep 2023 11:08:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHgCadEswSM3ZBKO7RZzR1BXNcU1CfoegulFbjy6cyaeSlq8r91VXcfck+B7XcWpkWThhun X-Received: by 2002:a17:906:74c7:b0:9a1:e758:fc6e with SMTP id z7-20020a17090674c700b009a1e758fc6emr106150ejl.10.1694110102940; Thu, 07 Sep 2023 11:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694110102; cv=none; d=google.com; s=arc-20160816; b=vcy2MvKFAWpHw0rm26B9ZvZ2cpkfUs1m0vABj72WtGfzRQ5Znp/sk5E4jxXsliY362 SDmLI2cYRd8esinb9Hh8X1N/lcpxrd0XdQaN6n1cfy23DBtyS8lbEZic8i4z0ETqOz8N EG9VgviMg+BmSpMxW3hcmEHxmwyrH7FM6AV3I2qfxI6PmBXPZxZ0lYRhdFa6+uA/u1Pu 0wMdZcuVO7Ac1MvVnrprBWiaRrIti2x6baSfl/pXJCRNhxP7P0OtAOG4T5taF7QyTizP 44IRhJv0J07DebQv629fdBXVKr+fmsrzfdI+Ih09M8cc3XX+s3Aaqh2J/7+d93xo2huW HImw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=2ZQtrBP0W2EUSYsCXHd4qW+8lS7BvciU8SK82eXeujg=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=GkKIX13LIzsQiwmxIvHaghM9cook2NaM04aByByRr+dBLZVU+rAjYQx2xn9uk7JKcE GJeTDAxH+MAazF3p8+zs9dGHkUhqtRkXTM9t19729aB7RRrFmWZc4hl+AB+Iw9zOgVci 0nU4YGCs/vFyFpMPlR2gDwASz8bhXgI1UI7e2qOsGEVODY2w8xFHtcpuRTZW9dH9VgTC 2jv6wnPE9d2mTnMyuzZIMsUnXHIPlJflZi5v00zvWe0BHJE5P2YtBfgN9JAi3PDcVV+c N5sbcl7ezYEa4QaLtP3y4jx/KSgGDJLm3F39pBD+i+Vgbt0dH8VPIcsIY+xOP7/dzqvf ijmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h23-20020a17090619d700b0099bc9254c6asi10682991ejd.903.2023.09.07.11.07.50; Thu, 07 Sep 2023 11:08:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232649AbjIGQbz (ORCPT + 99 others); Thu, 7 Sep 2023 12:31:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239061AbjIGQbf (ORCPT ); Thu, 7 Sep 2023 12:31:35 -0400 Received: from cantor.telenet-ops.be (cantor.telenet-ops.be [IPv6:2a02:1800:120:4::f00:10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A01A76A8 for ; Thu, 7 Sep 2023 09:18:45 -0700 (PDT) Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by cantor.telenet-ops.be (Postfix) with ESMTPS id 4RhL5L635Xz4x8kW for ; Thu, 7 Sep 2023 15:42:14 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:c214:2eac:128d:f67e]) by michel.telenet-ops.be with bizsmtp id j1hx2A00L2mGBSJ061hxu2; Thu, 07 Sep 2023 15:41:59 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qeFGQ-002m85-3F; Thu, 07 Sep 2023 15:41:57 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGf-00CMfU-BQ; Thu, 07 Sep 2023 15:41:57 +0200 From: Geert Uytterhoeven To: linux-m68k@lists.linux-m68k.org Cc: Arnd Bergmann , Finn Thain , Michael Schmitz , Philip Blundell , Greg Ungerer , Joshua Thompson , Sam Creasey , Laurent Vivier , linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 06/52] m68k: kernel: Add and use "process.h" Date: Thu, 7 Sep 2023 15:41:07 +0200 Message-Id: <6894409da1a0d8667bf74b9100067485ce3c37ac.1694093327.git.geert@linux-m68k.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776403195262500258 X-GMAIL-MSGID: 1776403195262500258 When building with W=1: arch/m68k/kernel/process.c:115:16: warning: no previous prototype for ‘m68k_clone’ [-Wmissing-prototypes] 115 | asmlinkage int m68k_clone(struct pt_regs *regs) | ^~~~~~~~~~ arch/m68k/kernel/process.c:136:16: warning: no previous prototype for ‘m68k_clone3’ [-Wmissing-prototypes] 136 | asmlinkage int m68k_clone3(struct pt_regs *regs) | ^~~~~~~~~~~ Fix this by introducing a new header file "process.h" for holding the prototypes of functions implemented in arch/m68k/kernel/process.c. Signed-off-by: Geert Uytterhoeven --- arch/m68k/kernel/process.c | 1 + arch/m68k/kernel/process.h | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 arch/m68k/kernel/process.h diff --git a/arch/m68k/kernel/process.c b/arch/m68k/kernel/process.c index e06ce147c0b7fcf2..d2d6a57356502e5b 100644 --- a/arch/m68k/kernel/process.c +++ b/arch/m68k/kernel/process.c @@ -38,6 +38,7 @@ #include #include +#include asmlinkage void ret_from_fork(void); asmlinkage void ret_from_kernel_thread(void); diff --git a/arch/m68k/kernel/process.h b/arch/m68k/kernel/process.h new file mode 100644 index 0000000000000000..d31745f2e64bebab --- /dev/null +++ b/arch/m68k/kernel/process.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#include + +struct pt_regs; + +asmlinkage int m68k_clone(struct pt_regs *regs); +asmlinkage int m68k_clone3(struct pt_regs *regs);