From patchwork Thu Sep 7 13:41:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137671 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp54638vqo; Thu, 7 Sep 2023 10:48:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGMB/x3b0Orby4uuws3QqbKpSajPOvFzhv9X4yolEUuBbCn9ClFupiRekgqAaRlMv4mZQR0 X-Received: by 2002:a17:906:18:b0:9a1:c00e:60cb with SMTP id 24-20020a170906001800b009a1c00e60cbmr69644eja.10.1694108898791; Thu, 07 Sep 2023 10:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694108898; cv=none; d=google.com; s=arc-20160816; b=YQOJJR2qJdNwk/fj2AB+rz8Erbbu8Yd/JU4/LF5DgByxube9O1uhHrTl7a0JgDpf5s pCwS+zFMiX0Dg1Ojx8FxxegYPIynBFQCoaie/ctvtQAKmlYbTF7x0lAWeboI0WFPoPVH aOKKsQiFVXO6TDtmYfzaYjUuOHkxTutRk0n84TD0CAH4fRn/fYkRznKIpN6hW66BoS2d rnGFMNhgKhLmB+rWWO+60d58cEoHfWMvc88sMSEbdnDll0ClMaR04CX7TJ1OYah8yJGK atIQaUWPhwo6tf2prDZtWFLD2zWjFGo4MalKiJ2BTa0tiGDmnioCiWZrWGc10yeaU4rR zP9A== 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=Naw3lVhddeRxqUHYtFIHpfJ4xUNMiLA7ga/7oIRl9yE=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=vVZWvXqoWHHz2V8U5GLRL28AhXBcR7o4U6pITfPtOyw5+6La4X4bIap6CTPFnj/smW ku5zKByNu1yAPNT7PV0k1XJIsIg2S4GosMqXSf4q30GO4BU5JQypPF3LFuKSes4ccWwB 01MgPjsYJdyZ0mAz+1shyNwpfc7MuRFVO4SgakwNE94eZPYl78LMXEblZw2eRQOicYeJ zGF1lz2U4jiNLQrAYd5wnqqhDvzrwGS9schMEuOs9nej558xvBrNs3Q3hH5WbQr7u7t2 NryXPZEMLJBmsdfeZIw6LllowLXVe5OI8Xh0tArHvUO3svrIYVj9XMGPEZB6n0jVh7fe RNqg== 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 kj27-20020a170907765b00b009a1e1f41394si10970238ejc.209.2023.09.07.10.48.06; Thu, 07 Sep 2023 10:48:18 -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 S244937AbjIGPcF (ORCPT + 44 others); Thu, 7 Sep 2023 11:32:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245097AbjIGP3O (ORCPT ); Thu, 7 Sep 2023 11:29:14 -0400 Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [IPv6:2a02:1800:110:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 899F2197 for ; Thu, 7 Sep 2023 08:28:45 -0700 (PDT) Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4RhL5L5zN4z4wxQH 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 baptiste.telenet-ops.be with bizsmtp id j1hx2A00F2mGBSJ011hxWw; 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 1qeFGP-002m7o-WD; Thu, 07 Sep 2023 15:41:57 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGf-00CMfC-7k; 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 02/52] m68k: kernel: Include for trap_init() Date: Thu, 7 Sep 2023 15:41:03 +0200 Message-Id: <9734b933bb64673532a31ddcbc61fdbee964cb8e.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: 1776401932448522592 X-GMAIL-MSGID: 1776401932448522592 When building with W=1: arch/m68k/kernel/vectors.c:74:13: warning: no previous prototype for ‘trap_init’ [-Wmissing-prototypes] 74 | void __init trap_init (void) | ^~~~~~~~~ Fix this by including . Signed-off-by: Geert Uytterhoeven --- arch/m68k/kernel/vectors.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/m68k/kernel/vectors.c b/arch/m68k/kernel/vectors.c index 322c977bb9ecfbee..68762fc1dc97b4e1 100644 --- a/arch/m68k/kernel/vectors.c +++ b/arch/m68k/kernel/vectors.c @@ -17,6 +17,7 @@ /* * Sets up all exception vectors */ +#include #include #include #include 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); From patchwork Thu Sep 7 13:41:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137673 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp58830vqo; Thu, 7 Sep 2023 10:56:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLNu27v06o3oXhVmwye3aTrX/pDN1A6YOqGDJGU6AH+tDOhIvZaHWhA+ZIJaXsZXO4Gbq6 X-Received: by 2002:a05:6512:3c81:b0:500:a1e4:fc44 with SMTP id h1-20020a0565123c8100b00500a1e4fc44mr152744lfv.61.1694109397539; Thu, 07 Sep 2023 10:56:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694109397; cv=none; d=google.com; s=arc-20160816; b=Qzb1ljRlo9oKbYNWposzco346DbZhJSUKYsiy/3iDUd5T4sXQIQIVp3qz/8Oj1E+1N 8ymC8CDYGnkAgp5waghxxSiYnGfpXp6XCQtEYIjpkd/hFqFAj9qjjlBqV+W55s+4bjIc Lfj9m5OXJroWYt68dkkw/ZD+h4VZmEFJ/u4M/fCe3ou5M0LnaoAi2GOfGb5rV9qXfCxz C7Nk2W7tFJ2AldV9sLUzYX5oSOQYlZsmgna1PYI/0VZgvUrl9DKS0sxsHFeTu63ToQFM DxOEg3zfdrG6S/Q8afWgrUHFePbOcx41rMeI4aipdluiVBqWwl6P18hpV5f/5uYtsDVq 6bSw== 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=j2Zi325hH7beGMkpbGzhZ+fuhf8RgQ+gzPL+xVn8RdM=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=q8BJD6WlbjZjAMluOY5wokAe2E7PTOTjH2gskfeBToMI2cY6DrCsrgvGYuoq4nGs7X M47NFHDc2EHE4oGx3JuATAqOPdvLzu3/M4ouBftfnaHh7uyH5+qfdD7MmUmsJFA8bv7j Eam7So05NYhaQiB0SInsay5lxsqm7LrfZGjVafm8kMOHWH2bode9fYeKVFNbhoWR41vm DcINcBHX6DLba5SoyaStkaspzQ3D48G/h8J96Sulq6rHBlGIukXZHxDX+bVns9SVvuEW tem7qei2D/8TuID7FMA8cePAoE26ZTPISPSAHVwfMt5ov6SOIRSuV8JYBSt8uPxL60B4 js6g== 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 i7-20020aa7c707000000b0052576324490si67845edq.157.2023.09.07.10.56.08; Thu, 07 Sep 2023 10:56:37 -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 S231590AbjIGQQR (ORCPT + 99 others); Thu, 7 Sep 2023 12:16:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239699AbjIGQPp (ORCPT ); Thu, 7 Sep 2023 12:15:45 -0400 Received: from gauss.telenet-ops.be (gauss.telenet-ops.be [IPv6:2a02:1800:120:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD93F83DF for ; Thu, 7 Sep 2023 09:13:32 -0700 (PDT) Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by gauss.telenet-ops.be (Postfix) with ESMTPS id 4RhL5L5z1jz4x0LC 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 baptiste.telenet-ops.be with bizsmtp id j1hx2A00H2mGBSJ011hxWx; 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-002m8H-6Q; Thu, 07 Sep 2023 15:41:57 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGf-00CMfk-EZ; 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 09/52] m68k: kernel: Add and use "traps.h" Date: Thu, 7 Sep 2023 15:41:10 +0200 Message-Id: <67dd1e62114053523983f066607e07ec6a890317.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=unavailable 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: 1776402455664534548 X-GMAIL-MSGID: 1776402455664534548 When building with W=1: arch/m68k/kernel/traps.c:754:17: warning: no previous prototype for ‘buserr_c’ [-Wmissing-prototypes] 754 | asmlinkage void buserr_c(struct frame *fp) | ^~~~~~~~ arch/m68k/kernel/traps.c:1140:17: warning: no previous prototype for ‘set_esp0’ [-Wmissing-prototypes] 1140 | asmlinkage void set_esp0(unsigned long ssp) | ^~~~~~~~ arch/m68k/kernel/traps.c:1155:17: warning: no previous prototype for ‘fpemu_signal’ [-Wmissing-prototypes] 1155 | asmlinkage void fpemu_signal(int signal, int code, void *addr) | ^~~~~~~~~~~~ arch/m68k/kernel/traps.c:1149:17: warning: no previous prototype for ‘fpsp040_die’ [-Wmissing-prototypes] 1149 | asmlinkage void fpsp040_die(void) | ^~~~~~~~~~~ Fix this by introducing a new header file "traps.h" for holding the prototypes of functions implemented in arch/m68k/kernel/traps.c. Signed-off-by: Geert Uytterhoeven --- arch/m68k/kernel/traps.c | 2 ++ arch/m68k/kernel/traps.h | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 arch/m68k/kernel/traps.h diff --git a/arch/m68k/kernel/traps.c b/arch/m68k/kernel/traps.c index b3fee39f8f518c6e..d408334712f7118b 100644 --- a/arch/m68k/kernel/traps.c +++ b/arch/m68k/kernel/traps.c @@ -41,6 +41,8 @@ #include #include +#include "traps.h" + static const char *vec_names[] = { [VEC_RESETSP] = "RESET SP", [VEC_RESETPC] = "RESET PC", diff --git a/arch/m68k/kernel/traps.h b/arch/m68k/kernel/traps.h new file mode 100644 index 0000000000000000..6414b4a0e5585671 --- /dev/null +++ b/arch/m68k/kernel/traps.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include + +struct frame; + +asmlinkage void buserr_c(struct frame *fp); +asmlinkage void fpemu_signal(int signal, int code, void *addr); +asmlinkage void fpsp040_die(void); +asmlinkage void set_esp0(unsigned long ssp); From patchwork Thu Sep 7 13:41:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137682 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp77885vqo; Thu, 7 Sep 2023 11:30:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeW42RfpsA3U2fwPv+Cs79GhOQVX5ZQqsRMjCdDmcn9ppoa+55iulvFCyT9dTGOIhz+68Y X-Received: by 2002:a17:90a:ce8c:b0:262:ecd9:ed09 with SMTP id g12-20020a17090ace8c00b00262ecd9ed09mr328613pju.33.1694111433309; Thu, 07 Sep 2023 11:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694111433; cv=none; d=google.com; s=arc-20160816; b=fC8ZfGLKjLVTcprRryx74tT99YjhraBF60j2gahJfgo+lC3l7Vl0tRKbxgn+jlc4MH O1D6XKM/wvLgJfYK3IJZ21J+SLYJKHAa0X6Dy/M45K1WfdfSud9Bubj3q8wM1lgQlsXb X7dqoVHFnAqSOEAr7xei+JCYmDo3EBMkQAx6vUkdJXAnUpcS3fBKBOUrXRVk/tIhmuk/ ALh6rOFkmCDMPSPCVRZ/Qgg6dBcYJHa0fCoXGgfaJAfZGT97jWx1US9hwBMRegbDTWG5 NMflZAlg+dl8cuzqYysHn3n3ZfeAB4VBh9J6SZ6IlCalXodXtWy7zXRdoFfwYJq13/4+ +fyw== 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=RpwNICKWtg5V9cVHZRnOPfdYZVzOeigGhFpQcXEIFNc=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=OZYv4D7I3uU3xfP7OzELoSanJp9zDk69fjw2UWq6/vA2dfaF4wYV5BsbP5PITDr8W/ BYiybjWXjnIgsx9mlbFURLIqCoBx9rDhEUHhse3JM0VVNExyqOF0zmQtcNf6z2pVm1eV Yap2kQKP5paC2d2ltKjLVssKtc2lo2tXAMlwt8smuObHmNZJspnJQ9KcdBumbIY2js3b g8nIgDTPNtnKmbB7W+WbwpGab2YNbSNdY7E0nT+ZdAaSk/rjkZfKPNQiSWn99qx4UQAc WvAqF6uK+MSRZtmqR/lpk/94W4xyN7QCjpYUBT2PiugCs79GEdeLSzFS5PNhNgIHiG2+ rucQ== 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 y17-20020a637d11000000b005638179cecasi219957pgc.833.2023.09.07.11.30.05; Thu, 07 Sep 2023 11:30:33 -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 S236773AbjIGQNR (ORCPT + 99 others); Thu, 7 Sep 2023 12:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237849AbjIGQMm (ORCPT ); Thu, 7 Sep 2023 12:12:42 -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 7407055AB for ; Thu, 7 Sep 2023 09:09:44 -0700 (PDT) Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by cantor.telenet-ops.be (Postfix) with ESMTPS id 4RhL6D02ddz4xT4y for ; Thu, 7 Sep 2023 15:43:00 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:c214:2eac:128d:f67e]) by andre.telenet-ops.be with bizsmtp id j1hx2A00L2mGBSJ011hxG2; 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-002m8Q-8f; Thu, 07 Sep 2023 15:41:57 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGf-00CMft-GC; 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 11/52] m68k: mm: Include for hwreg_() Date: Thu, 7 Sep 2023 15:41:12 +0200 Message-Id: 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: 1776404590416611947 X-GMAIL-MSGID: 1776404590416611947 When building with W=1: arch/m68k/mm/hwtest.c:29:5: warning: no previous prototype for ‘hwreg_present’ [-Wmissing-prototypes] 29 | int hwreg_present(volatile void *regp) | ^~~~~~~~~~~~~ arch/m68k/mm/hwtest.c:62:5: warning: no previous prototype for ‘hwreg_write’ [-Wmissing-prototypes] 62 | int hwreg_write(volatile void *regp, unsigned short val) | ^~~~~~~~~~~ Fix this by including . Signed-off-by: Geert Uytterhoeven --- arch/m68k/mm/hwtest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/m68k/mm/hwtest.c b/arch/m68k/mm/hwtest.c index fe99aa99987e9c38..8ee7a336868868bb 100644 --- a/arch/m68k/mm/hwtest.c +++ b/arch/m68k/mm/hwtest.c @@ -26,6 +26,8 @@ #include +#include + int hwreg_present(volatile void *regp) { int ret = 0; From patchwork Thu Sep 7 13:41:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137676 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp67639vqo; Thu, 7 Sep 2023 11:10:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFAosiSBSW5G6HvnpwYqxlal+CjY3Ekb1bEuaDQdR0CZ6dOwPi4Nm/pLwOPY1BxMTvQEACg X-Received: by 2002:a17:90b:1d08:b0:26f:f272:144c with SMTP id on8-20020a17090b1d0800b0026ff272144cmr354347pjb.27.1694110246117; Thu, 07 Sep 2023 11:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694110246; cv=none; d=google.com; s=arc-20160816; b=KP9dIkRTVGyKWdYg3afgONY9OyPS90P4UT3tH8+UjZ4b7vmOCqRzavObYSASohp+hf HS2l2ratcFhcValhlTxPs7hzBiqVs8KbGqTt7Mn3TosOYQNVPQF9DESl5G1yHXw1k0Zf knjlFGEzZZzIO5uQUTQWyPTV3B/O5iOXhVPanUdM6t+5BQaoXuVfg87dIujl6koCkkXA er20AMaUsxuXtqhHv8BgP7MleNB0z2BR5pQaqYbHF/dSpl8jv+uIFT6cYEQG24fAADWz yKz2ktAWswPFPvrYRfNdaHwkVGhka6Dcro7bKt/ekp8cQb1U9kboJGK7eeJPITk0C2JY SkBg== 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=S0Bed5JPiRyXt2eU9LOY1QI56oEbDxrXheXaxL7NCYg=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=bRgvumqLzBLX+VnzUGZcKkMHhZjkPc2ndzYqCCnf+uxlUfx+C2Kv90v60aeIi3lJ3e LxwrdfEdZ/54e2YunZxUGdU65rErddIjYZ7O1krESTkmGf2QwF7nuOZVjc1QpBvwXeMI WZX30Y7BNJV5wHlRSkj7DyBPOEifG0F/xHJC0Sdjc2KFPoBE8FGBSULXj0hZX5ze1RAN mNn6QVS/9W/18SOkiFr6N8bnwjLO9QLUtGGrXXg9kkmA9v9nmLRnDhRhFFl2Tsn9WS9n 2Whe5v+uBVpyuuKF+Lt/KLls5sa7hLGUKFbWG2IxR6JV/WC1HVb4MywdNQfMxycmmnnd 9blw== 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 w9-20020a17090a8a0900b002719f1f90cbsi1911234pjn.61.2023.09.07.11.10.28; Thu, 07 Sep 2023 11:10:46 -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 S237001AbjIGQVZ (ORCPT + 99 others); Thu, 7 Sep 2023 12:21:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242187AbjIGQVF (ORCPT ); Thu, 7 Sep 2023 12:21:05 -0400 Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [IPv6:2a02:1800:110:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2BF86A6F for ; Thu, 7 Sep 2023 09:17:52 -0700 (PDT) Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4RhL6D0285z4x1nv for ; Thu, 7 Sep 2023 15:43:00 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:c214:2eac:128d:f67e]) by baptiste.telenet-ops.be with bizsmtp id j1hx2A00U2mGBSJ011hxX0; 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-002m8f-Bq; Thu, 07 Sep 2023 15:41:57 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGf-00CMgD-K1; 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 15/52] m68k: emu: Mark version[] __maybe_unused Date: Thu, 7 Sep 2023 15:41:16 +0200 Message-Id: <64ea8cf65a4318fbf8c91cb3062d90a2555007c4.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: 1776403345300848903 X-GMAIL-MSGID: 1776403345300848903 When building with W=1: m68k/arch/m68k/emu/nfeth.c:42:19: warning: ‘version’ defined but not used [-Wunused-const-variable=] 42 | static const char version[] = | ^~~~~~~ Fix this while obeying the wishes of the original copyright holders by marking version[] with __maybe_unused. Signed-off-by: Geert Uytterhoeven --- arch/m68k/emu/nfeth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/emu/nfeth.c b/arch/m68k/emu/nfeth.c index 1a5d1e8eb4c80839..26e68813f35144f8 100644 --- a/arch/m68k/emu/nfeth.c +++ b/arch/m68k/emu/nfeth.c @@ -39,7 +39,7 @@ enum { #define MAX_UNIT 8 /* These identify the driver base version and may not be removed. */ -static const char version[] = +static const char version[] __maybe_unused = KERN_INFO KBUILD_MODNAME ".c:v" DRV_VERSION " " DRV_RELDATE " S.Opichal, M.Jurik, P.Stehlik\n" KERN_INFO " http://aranym.org/\n"; From patchwork Thu Sep 7 13:41:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137661 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp38455vqo; Thu, 7 Sep 2023 10:18:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6+kWyX7EVdVHSmzszdFtobUi6H04Coj0t1vbMYPJdFBtYIB8H0FfEXqNqTvzFeNqQTTmG X-Received: by 2002:a6b:6509:0:b0:787:1a8f:1d08 with SMTP id z9-20020a6b6509000000b007871a8f1d08mr362329iob.15.1694107115463; Thu, 07 Sep 2023 10:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694107115; cv=none; d=google.com; s=arc-20160816; b=Wwg1V5+t3nemJSqTK18+hkUS/tfx94ssMlZoVER65YH6x7FyFKwMGoXrdulRLwOTZ/ Kq+iUXVxkhMSbHh/L3DwkO374pVz6yThG24tlOLYdrWsAU6T5hAG9EgaInf9QR1PYrbA Mqly4+sJt5bwecS9fD6Few194ID3VWmUww/RipxQJ+YWwg8MLSGgIn9buzZa3QMS71EP zTgBdvOcYUfFUtyWizAHIvESEfRXUMkp7IhvQjI1v1qjmItLFNpBhNOuUu/HkyXE9cYx +zgYsRwJK0bQZQpIJKUZHBS4ekz604W7Hx8HsBXtDFTZ0G/E1w7oZ9NEiqplTH7j5xUC 8gNA== 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=JaZAlf9kr+OViGhMHTZWK9viG7iibEl4HQ6LwogRWXo=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=ZmW7pry36zsBFpJNNjc/s8IiGX6nJBnfXBr27vwb6f9dncLmOhTB6x/5CuWcqzfFYW +KfIkPuggpIw678XsTngB0MWkBIXOfKSi8h0iRWMPKGC3MJAmSPisQ/ZKmE8c0NL2n/l 6a+Vh1HiZT3oMpFfHPVEJKOU0N29Am5N0V9rUbtlFZw43S3UxqRNLfiAtnQHnnlw/CU2 DmZn+YWJAFnLaaAakVzWuOp9TUwcdoliQGi+JoC9mnm4BgtHuL99LKgZchTG8aInAhs6 tB6xbUCOQRVFQJnV8UA99k70BziAGgAbT1jRAd6CHDGMO3N5BxEILNxgmsShXC1zs2j1 jdjw== 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 z12-20020a634c0c000000b0056679c8e70csi231284pga.272.2023.09.07.10.18.29; Thu, 07 Sep 2023 10:18:35 -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 S237306AbjIGQXv (ORCPT + 37 others); Thu, 7 Sep 2023 12:23:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241490AbjIGQWb (ORCPT ); Thu, 7 Sep 2023 12:22:31 -0400 Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [IPv6:2a02:1800:110:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80E506A44 for ; Thu, 7 Sep 2023 09:19:52 -0700 (PDT) Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4RhL6D04PRz4x30m for ; Thu, 7 Sep 2023 15:43:00 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:c214:2eac:128d:f67e]) by xavier.telenet-ops.be with bizsmtp id j1hx2A00C2mGBSJ011hxwm; 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-002m8k-Cg; Thu, 07 Sep 2023 15:41:57 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGf-00CMgI-Ko; 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 16/52] m68k: amiga: pcmcia: Replace set but not used variable by READ_ONCE() Date: Thu, 7 Sep 2023 15:41:17 +0200 Message-Id: <4b6eaac8dd2053e14eedf957f446dc30ccfdbc75.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=unavailable 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: 1776400062454049915 X-GMAIL-MSGID: 1776400062454049915 When building with W=1: arch/m68k/amiga/pcmcia.c: In function ‘pcmcia_reset’: arch/m68k/amiga/pcmcia.c:29:23: warning: variable ‘b’ set but not used [-Wunused-but-set-variable] 29 | unsigned char b; | ^ Fix this by using READ_ONCE(), and removing the variable. Signed-off-by: Geert Uytterhoeven --- arch/m68k/amiga/pcmcia.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/m68k/amiga/pcmcia.c b/arch/m68k/amiga/pcmcia.c index 7106f0c3639bc105..63cce6b590df4dcb 100644 --- a/arch/m68k/amiga/pcmcia.c +++ b/arch/m68k/amiga/pcmcia.c @@ -26,11 +26,10 @@ static unsigned char cfg_byte = GAYLE_CFG_0V|GAYLE_CFG_150NS; void pcmcia_reset(void) { unsigned long reset_start_time = jiffies; - unsigned char b; gayle_reset = 0x00; while (time_before(jiffies, reset_start_time + 1*HZ/100)); - b = gayle_reset; + READ_ONCE(gayle_reset); } EXPORT_SYMBOL(pcmcia_reset); From patchwork Thu Sep 7 13:41:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137678 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp74079vqo; Thu, 7 Sep 2023 11:22:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/eBYPf1kDqsfRkO9hQJaV2VXKGapByPDuoMCx94MU79ZT9hIzQBLsfBDkAPMbfBFlpEnO X-Received: by 2002:a05:6a21:778a:b0:14c:5c5d:ba93 with SMTP id bd10-20020a056a21778a00b0014c5c5dba93mr493799pzc.56.1694110950910; Thu, 07 Sep 2023 11:22:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694110950; cv=none; d=google.com; s=arc-20160816; b=Uf+PKZjy7BuROnSOrKVKFvucRqbkCZqxJn68MxHxjAgDcq7tlebbCtYwUSBVddjEdm DvCXrYD6cpZwHoFGh2YbY4Fj6SBTu153nc/ZuND9pflCxm09U0KygkqOpwR/E6oCFBQb L6SpmfYPw8xjZ+KilKDQNzQg6SGRGzwp9gW3bwa0qftvnAKTCSSObUq8YXj0XikuSq8z py9sCtxJF34XkqO7W4ER/p5Vgf1bsfmcliQrVfEYcsRAdGenqKn8pCJ6AQY/Kvds3L+1 weQUxKG6QM2K4JECW2RGXWLiQZM2g+zBU2zitzdiiq9LfLuYMPnB1KGjf2UmGzT8gH31 hylQ== 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=hCl9G+jYpZZJO5GQ/qlB4nW7VWh0hbnmf8GNICfwZTw=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=S0NldUjkYkGNQ3VY5nBh3e6uUbZ8D4URT9tPda4/ieVFdqrgdgsBiaiUohWjDRJuVe /wLzXMPo0NI0wVZ1hyCRuYzivWNWncxFvGZY2XVdfPowgN6vGtRNKNPPG/gSNiWorD+4 oyEuF/GbR2y9Eo/atMB1pk95B63SdYmoVL4VRt+LmBgtkSFS9PPMHi5ZIBDbutftpBnL 08kkzDii6Ct+coMv2pRIVD5a0xSGOTkgG1w52frPz7lIRy02Yy6WJ/EK9ehSc3y0g2Kf 151KYKqCGL0nDTUbkfodXkPyTIe25qFeZAbcMFMr833Y2D8x1wXqv/MuGydtEliJO19w cMgQ== 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 a24-20020a637058000000b00565f5281804si13697242pgn.195.2023.09.07.11.22.14; Thu, 07 Sep 2023 11:22:30 -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 S241795AbjIGQiy (ORCPT + 99 others); Thu, 7 Sep 2023 12:38:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244407AbjIGQiY (ORCPT ); Thu, 7 Sep 2023 12:38:24 -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 D90D044A7 for ; Thu, 7 Sep 2023 09:14:50 -0700 (PDT) Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by cantor.telenet-ops.be (Postfix) with ESMTPS id 4RhL6D05Ttz4xVNm for ; Thu, 7 Sep 2023 15:43:00 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:c214:2eac:128d:f67e]) by laurent.telenet-ops.be with bizsmtp id j1hx2A00F2mGBSJ011hxtg; 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-002m8o-Db; Thu, 07 Sep 2023 15:41:57 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGf-00CMgN-Lh; 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 17/52] m68k: amiga: Add and use "amiga.h" Date: Thu, 7 Sep 2023 15:41:18 +0200 Message-Id: <167b484b2e2f73a23768f94fdc7b2dce91aed5d5.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: 1776404084335319055 X-GMAIL-MSGID: 1776404084335319055 When building with W=1: arch/m68k/amiga/amisound.c:48:13: warning: no previous prototype for ‘amiga_init_sound’ [-Wmissing-prototypes] 48 | void __init amiga_init_sound(void) | ^~~~~~~~~~~~~~~~ arch/m68k/amiga/amisound.c:71:6: warning: no previous prototype for ‘amiga_mksound’ [-Wmissing-prototypes] 71 | void amiga_mksound( unsigned int hz, unsigned int ticks ) | ^~~~~~~~~~~~~ Fix this by introducing a new header file "amiga.h" for holding the prototypes of functions implemented in arch/m68k/amiga/. Signed-off-by: Geert Uytterhoeven --- arch/m68k/amiga/amiga.h | 5 +++++ arch/m68k/amiga/amisound.c | 2 ++ arch/m68k/amiga/config.c | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 arch/m68k/amiga/amiga.h diff --git a/arch/m68k/amiga/amiga.h b/arch/m68k/amiga/amiga.h new file mode 100644 index 0000000000000000..00392781442cb91a --- /dev/null +++ b/arch/m68k/amiga/amiga.h @@ -0,0 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* amisound.c */ +void amiga_init_sound(void); +void amiga_mksound(unsigned int hz, unsigned int ticks); diff --git a/arch/m68k/amiga/amisound.c b/arch/m68k/amiga/amisound.c index 442bdeee6bd7920c..714fe8ec6afa3364 100644 --- a/arch/m68k/amiga/amisound.c +++ b/arch/m68k/amiga/amisound.c @@ -16,6 +16,8 @@ #include +#include "amiga.h" + static unsigned short *snd_data; static const signed char sine_data[] = { 0, 39, 75, 103, 121, 127, 121, 103, 75, 39, diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c index 3137b45750dfcea7..7791673e547bf795 100644 --- a/arch/m68k/amiga/config.c +++ b/arch/m68k/amiga/config.c @@ -39,6 +39,8 @@ #include #include +#include "amiga.h" + static unsigned long amiga_model; unsigned long amiga_eclock; @@ -96,9 +98,7 @@ static char amiga_model_name[13] = "Amiga "; static void amiga_sched_init(void); static void amiga_get_model(char *model); static void amiga_get_hardware_list(struct seq_file *m); -extern void amiga_mksound(unsigned int count, unsigned int ticks); static void amiga_reset(void); -extern void amiga_init_sound(void); static void amiga_mem_console_write(struct console *co, const char *b, unsigned int count); #ifdef CONFIG_HEARTBEAT From patchwork Thu Sep 7 13:41:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137674 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp60922vqo; Thu, 7 Sep 2023 11:00:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHH7LVjstAEL3ijGbrs+BBBLneHc8p7E9Jr88AO9FszIxAZljll+19yZ0U5r9FaKbcUPmZy X-Received: by 2002:a05:6a20:4422:b0:134:d4d3:f0a5 with SMTP id ce34-20020a056a20442200b00134d4d3f0a5mr472734pzb.2.1694109640577; Thu, 07 Sep 2023 11:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694109640; cv=none; d=google.com; s=arc-20160816; b=TPcPEEu9HnuegHQl6lp05s9Tw77kPM2pzUra2Pi7vvfn6PRt3YuhpR4AZXWgwSZfvr by3ILdErlx+8CZxvjZOdg3krhHGbDXtYr5JrGhD5MW/PgmQ/Xgso+5FW2beYmNbzrLWw DQ575UoyG929zmgBjfdgJ84o6msiSO6zxSrOyrr+uqBk8Uxxs3E6dLoAXg1Q6+iWSICj 3R0GYPwFCqDImLEgqeKtjVRtKJsXo26PqvAXzLDsb1AQdxISQ7DRrBvJjdsSRfhJuaNs RuINXx0avXe8Gi6WReKQQZxHVXbxDwDDhSfhKXhfpMEPZsREF6PWusVnHwdSp2JuyeG8 FZ7g== 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=zVI2LKGDdWW4o2b3wuqf/37BYer+Wyg8omwDEWOM/Ik=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=v/N0ACLfLvCNS8hnBVMA+9EVh/g3pi2d7ZaxonNPMwc4octsjmZzlN5yy7p1j6B0JD BbIXyzXQcFk0UivbRHqBcuEXtjskJCA0H2dBQJVpRgyHBMUofMnx0Pbdubp+RIA9julj VtPAjQT/8Fo5Uyd31jTUv5s0rUVt48eFZF02fPbH1o0U05eQcLTdF5OBKdyUPYs+cCiG //tPmzywrz4FM35HTHqOSCfLj+SxQi4ZO/fUzFMrvab+bbYITh3YfDHiBpUd8gehX6Yv bn5/ZpIr3HxH4KYoTVNtuqtuFyVewUNQj8LSTTRytz1AVLAKPpPFaHeM7XKUJvDoXZFB r+Og== 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 s194-20020a632ccb000000b0056a8dc222f1si14035525pgs.259.2023.09.07.11.00.33; Thu, 07 Sep 2023 11:00:40 -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 S1344062AbjIGPcV (ORCPT + 44 others); Thu, 7 Sep 2023 11:32:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343609AbjIGPah (ORCPT ); Thu, 7 Sep 2023 11:30:37 -0400 X-Greylist: delayed 146 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 07 Sep 2023 08:30:10 PDT Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [195.130.137.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D933D1BF6 for ; Thu, 7 Sep 2023 08:30:10 -0700 (PDT) Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4RhL534R3Sz4x0lQ for ; Thu, 7 Sep 2023 15:41:59 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by laurent.telenet-ops.be with bizsmtp id j1hy2A0031C8whw011hyto; 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-002m95-I9; Thu, 07 Sep 2023 15:41:57 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGf-00CMgm-QR; 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 22/52] m68k: atari: Add and use "atari.h" Date: Thu, 7 Sep 2023 15:41:23 +0200 Message-Id: <0778d9dd186928666d760d5523c7d2311f781621.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: 1776402710241633467 X-GMAIL-MSGID: 1776402710241633467 When building with W=1: arch/m68k/atari/time.c:59:1: warning: no previous prototype for ‘atari_sched_init’ [-Wmissing-prototypes] 59 | atari_sched_init(void) | ^~~~~~~~~~~~~~~~ arch/m68k/atari/time.c:140:5: warning: no previous prototype for ‘atari_mste_hwclk’ [-Wmissing-prototypes] 140 | int atari_mste_hwclk( int op, struct rtc_time *t ) | ^~~~~~~~~~~~~~~~ arch/m68k/atari/time.c:199:5: warning: no previous prototype for ‘atari_tt_hwclk’ [-Wmissing-prototypes] 199 | int atari_tt_hwclk( int op, struct rtc_time *t ) | ^~~~~~~~~~~~~~ arch/m68k/atari/ataints.c:267:13: warning: no previous prototype for ‘atari_init_IRQ’ [-Wmissing-prototypes] 267 | void __init atari_init_IRQ(void) | ^~~~~~~~~~~~~~ arch/m68k/atari/atasound.c:36:6: warning: no previous prototype for ‘atari_microwire_cmd’ [-Wmissing-prototypes] 36 | void atari_microwire_cmd (int cmd) | ^~~~~~~~~~~~~~~~~~~ arch/m68k/atari/atasound.c:53:6: warning: no previous prototype for ‘atari_mksound’ [-Wmissing-prototypes] 53 | void atari_mksound (unsigned int hz, unsigned int ticks) | ^~~~~~~~~~~~~ Fix this by introducing a new header file "atari.h" for holding the prototypes of functions implemented in arch/m68k/atari/. Signed-off-by: Geert Uytterhoeven --- arch/m68k/atari/ataints.c | 3 +-- arch/m68k/atari/atari.h | 15 +++++++++++++++ arch/m68k/atari/atasound.c | 1 + arch/m68k/atari/config.c | 11 ++--------- arch/m68k/atari/time.c | 2 ++ 5 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 arch/m68k/atari/atari.h diff --git a/arch/m68k/atari/ataints.c b/arch/m68k/atari/ataints.c index 56f02ea2c248d844..23256434191c39af 100644 --- a/arch/m68k/atari/ataints.c +++ b/arch/m68k/atari/ataints.c @@ -52,6 +52,7 @@ #include #include +#include "atari.h" /* * Atari interrupt handling scheme: @@ -81,8 +82,6 @@ __ALIGN_STR "\n\t" "orw #0x200,%sp@\n\t" /* set saved ipl to 2 */ "rte"); -extern void atari_microwire_cmd(int cmd); - static unsigned int atari_irq_startup(struct irq_data *data) { unsigned int irq = data->irq; diff --git a/arch/m68k/atari/atari.h b/arch/m68k/atari/atari.h new file mode 100644 index 0000000000000000..494a03ddac3d16ae --- /dev/null +++ b/arch/m68k/atari/atari.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +struct rtc_time; + +/* ataints.c */ +void atari_init_IRQ(void); + +/* atasound.c */ +void atari_microwire_cmd(int cmd); +void atari_mksound(unsigned int hz, unsigned int ticks); + +/* time.c */ +void atari_sched_init(void); +int atari_mste_hwclk(int op, struct rtc_time *t); +int atari_tt_hwclk(int op, struct rtc_time *t); diff --git a/arch/m68k/atari/atasound.c b/arch/m68k/atari/atasound.c index a8724d998c39fcfa..c38ef0e6078e7260 100644 --- a/arch/m68k/atari/atasound.c +++ b/arch/m68k/atari/atasound.c @@ -28,6 +28,7 @@ #include #include +#include "atari.h" /* * stuff from the old atasound.c diff --git a/arch/m68k/atari/config.c b/arch/m68k/atari/config.c index b4fe4273ad912ebe..b48a0606a00068b9 100644 --- a/arch/m68k/atari/config.c +++ b/arch/m68k/atari/config.c @@ -48,6 +48,8 @@ #include #include +#include "atari.h" + u_long atari_mch_cookie; EXPORT_SYMBOL(atari_mch_cookie); @@ -69,19 +71,10 @@ int atari_rtc_year_offset; static void atari_reset(void); static void atari_get_model(char *model); static void atari_get_hardware_list(struct seq_file *m); - -/* atari specific irq functions */ -extern void atari_init_IRQ (void); -extern void atari_mksound(unsigned int count, unsigned int ticks); #ifdef CONFIG_HEARTBEAT static void atari_heartbeat(int on); #endif -/* atari specific timer functions (in time.c) */ -extern void atari_sched_init(void); -extern int atari_mste_hwclk (int, struct rtc_time *); -extern int atari_tt_hwclk (int, struct rtc_time *); - /* ++roman: This is a more elaborate test for an SCC chip, since the plain * Medusa board generates DTACK at the SCC's standard addresses, but a SCC * board in the Medusa is possible. Also, the addresses where the ST_ESCC diff --git a/arch/m68k/atari/time.c b/arch/m68k/atari/time.c index 7e44d0e9d0f8a902..3453c6dc6b41d3c9 100644 --- a/arch/m68k/atari/time.c +++ b/arch/m68k/atari/time.c @@ -23,6 +23,8 @@ #include #include +#include "atari.h" + DEFINE_SPINLOCK(rtc_lock); EXPORT_SYMBOL_GPL(rtc_lock); From patchwork Thu Sep 7 13:41:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137681 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp77771vqo; Thu, 7 Sep 2023 11:30:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzikUMk4xncpqhhEL2pX/uNi7FfOC+BvZVWdHaupTSrCxaSYuUDxg3VYPTqAmnspUaTkUt X-Received: by 2002:a17:902:bd93:b0:1c3:2dcb:25c9 with SMTP id q19-20020a170902bd9300b001c32dcb25c9mr367930pls.40.1694111419102; Thu, 07 Sep 2023 11:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694111419; cv=none; d=google.com; s=arc-20160816; b=kfvN9PDLaSWmd9zcm6YxmP4nITBfX5TF21Fxv2YATWxDzmVR04w6fPzY95ZA+bkEOg Ap+FlB6b+LEwMlUy4BdAPYVNSOV7uwzecoaQ5hqEIaIzKLcY+LKYqRW40iYf0rnT/PcU URKtqX1xikGuUbLjMuy7MWYYG2XWGCu/R/XlYggKgLGw2a+9V7/wwV1vIb5+QfpmYe8W p0NuBA247aBKFHiSy39xEdowEy38oSKZafFHmwqoPHIItFvrAEYLDzqRmFZ8WFGvMMDW di23fSd6k/09O8908zhYbq9Glm/YKbucDHJq5wNWj3s5xa+VZiRa881zJBfxE9sfarZE vijA== 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=l/7O908plcfOZNFdtj6J5XIgDAIJh5Bmuj+flglQlvM=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=n55Z/QZbMBXU9oegJt94mr7JuXcyd49CHrMoEMZNzxKpk55PhbFvMi4wOQIK/M5AED no0ToQJxoo4/L4u2OhKZ+C9soXa2bMM1wv6Y+6aZA7zkcpMGqFA2IHnSJXYUF7zV/3Fg vTe6IQLRpjrfoXgOuqTinXE2pgMBHxUKf+5ohFhbVEy2yfdxlROamDhwpScra6l6+1hM 4HYMowX6S6S87wHfmAQ/4yFHtTkmoA05+xbPrBRpiaX+ZNVGZSz3d+UnkfII1DagAQvn Q4IsqH+7wm7Rf1XqKZ/q6YQY5E0OJPGH5Yw9kHVSckSF06x64m6EPvFCsS4kZnieQftz WFfg== 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 la5-20020a170902fa0500b001bf5753e0ccsi122182plb.119.2023.09.07.11.30.11; Thu, 07 Sep 2023 11:30:19 -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 S229547AbjIGPga (ORCPT + 42 others); Thu, 7 Sep 2023 11:36:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344277AbjIGPcv (ORCPT ); Thu, 7 Sep 2023 11:32:51 -0400 Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [IPv6:2a02:1800:110:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5F271FCA for ; Thu, 7 Sep 2023 08:32:29 -0700 (PDT) Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4RhL5L60NCz4x16y 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 andre.telenet-ops.be with bizsmtp id j1hy2A0022mGBSJ011hyGA; 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-002m9B-Jc; Thu, 07 Sep 2023 15:41:57 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGf-00CMgq-R7; 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 23/52] m68k: apollo: Remove unused debug console functions Date: Thu, 7 Sep 2023 15:41:24 +0200 Message-Id: <133c76b1bd98932d8aeed8f1a85271cbe4d39a65.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: 1776404575397964697 X-GMAIL-MSGID: 1776404575397964697 When building with W=1: arch/m68k/apollo/config.c:111:5: warning: no previous prototype for ‘dn_serial_console_wait_key’ [-Wmissing-prototypes] 111 | int dn_serial_console_wait_key(struct console *co) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/m68k/apollo/config.c:118:6: warning: no previous prototype for ‘dn_serial_console_write’ [-Wmissing-prototypes] 118 | void dn_serial_console_write (struct console *co, const char *str,unsigned int count) | ^~~~~~~~~~~~~~~~~~~~~~~ arch/m68k/apollo/config.c:238:6: warning: no previous prototype for ‘dn_dummy_waitbut’ [-Wmissing-prototypes] 240 | void dn_dummy_waitbut(void) { | ^~~~~~~~~~~~~~~~ Fix this by removing these unused functions. The last user of dn_serial_console_write() was removed in v2.3.41. The other functions never had any users. Signed-off-by: Geert Uytterhoeven --- arch/m68k/apollo/config.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/arch/m68k/apollo/config.c b/arch/m68k/apollo/config.c index 42a8b8e2b664226a..fccbb40772dca6b9 100644 --- a/arch/m68k/apollo/config.c +++ b/arch/m68k/apollo/config.c @@ -4,7 +4,6 @@ #include #include #include -#include #include #include #include @@ -108,27 +107,6 @@ static void __init dn_setup_model(void) } -int dn_serial_console_wait_key(struct console *co) { - - while(!(sio01.srb_csrb & 1)) - barrier(); - return sio01.rhrb_thrb; -} - -void dn_serial_console_write (struct console *co, const char *str,unsigned int count) -{ - while(count--) { - if (*str == '\n') { - sio01.rhrb_thrb = (unsigned char)'\r'; - while (!(sio01.srb_csrb & 0x4)) - ; - } - sio01.rhrb_thrb = (unsigned char)*str++; - while (!(sio01.srb_csrb & 0x4)) - ; - } -} - void dn_serial_print (const char *str) { while (*str) { @@ -237,12 +215,6 @@ void dn_dummy_reset(void) { } -void dn_dummy_waitbut(void) { - - dn_serial_print("waitbut\n"); - -} - static void dn_get_model(char *model) { strcpy(model, "Apollo "); From patchwork Thu Sep 7 13:41:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137670 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp51122vqo; Thu, 7 Sep 2023 10:41:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETxYOkdf+DlPOTFGKboMVlMOG4XMlov0bNtvLTWHIlCcg0LgXPtI5QJEMBKL/YArddL7TZ X-Received: by 2002:a17:906:5a51:b0:9a1:ffa7:d2da with SMTP id my17-20020a1709065a5100b009a1ffa7d2damr62207ejc.17.1694108502858; Thu, 07 Sep 2023 10:41:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694108502; cv=none; d=google.com; s=arc-20160816; b=g0VPSWc7op7/5DFYSmOOTBgHTHo5v33ogc39M2wZCmrfUc+cmw0rqs8WDAPsAQTP9u jPO88KMYLkulsP9Dj+yVtfEIjVSyW0MyjP+covdPsSEirYi05tE6FpHPFwnXkXhDr2UR f/BT2wDRtLb+9YPpktQ45TPJvM20fP7XnTHyLTRt4YPKXWAtKuooKHwpTqKuJAY9GHxe BTsx/vX1epq8J/HL4n9Y81Hr7Wd7SZ/tkgpGrZkGeXLMkjuptlh3JvQO0IW7tppvNf8e n8GVjKQ5XF4WGM3uW8gqvJzS88m3/rJnhWnEA83i2uBymaPYkz80oTEMZtpzIAkcyeQJ alMQ== 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=Z+0Po+gihs6vNq+z7ow0frP24qU9N4hp5gy509SYZp8=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=wI7YskqeJTxPzZR0GpZavukWmevVKoU/oqIPhS1/baEmsyWiyFC43/Xr06GOqZ4uqg At4cYPgLIKQnUQyVbMXVx2WBoNbIQVi1liL1Vhl69VEurl/5fs+Yyqwms9dP6M1wb4Ma 6n6Rr2iGrmUcZQ17UYaMBYRbleejXW9cKEauR8W3Ttk8ZEvj6+RjksOJask7oEp+N/UC cJl/KChuvNSrNL+7lrWe4wGBZDyQnhmf56kdzY7cAPVIDY4uyEJMbVXhwZ4tO7ouiqig ztBzvPUdIFZrYqzwJo2r/a2PQA9ANQ90yLWGCXiB7fWqWeLFkzxb5O2xkyXqqR+03eud KWNQ== 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 l23-20020a1709060e1700b0098e47bbff3csi10522021eji.297.2023.09.07.10.41.30; Thu, 07 Sep 2023 10:41:42 -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 S234279AbjIGQVH (ORCPT + 37 others); Thu, 7 Sep 2023 12:21:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236349AbjIGQUb (ORCPT ); Thu, 7 Sep 2023 12:20:31 -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 897232D42 for ; Thu, 7 Sep 2023 09:16:48 -0700 (PDT) Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by cantor.telenet-ops.be (Postfix) with ESMTPS id 4RhL5L5zSRz4x4qG 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 andre.telenet-ops.be with bizsmtp id j1hy2A0042mGBSJ011hyGB; 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-002m9E-KK; Thu, 07 Sep 2023 15:41:57 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGf-00CMgv-Rn; 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 24/52] m68k: apollo: Make local reset, serial, and irq functions static Date: Thu, 7 Sep 2023 15:41:25 +0200 Message-Id: <975ee6ee27cc9d41cfd9026643bd3da63546bc13.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=unavailable 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: 1776401517496118937 X-GMAIL-MSGID: 1776401517496118937 When building with W=1: arch/m68k/apollo/config.c:132:6: warning: no previous prototype for ‘dn_serial_print’ [-Wmissing-prototypes] 110 | void dn_serial_print (const char *str) | ^~~~~~~~~~~~~~~ arch/m68k/apollo/dn_ints.c:8:14: warning: no previous prototype for ‘apollo_irq_startup’ [-Wmissing-prototypes] 8 | unsigned int apollo_irq_startup(struct irq_data *data) | ^~~~~~~~~~~~~~~~~~ arch/m68k/apollo/dn_ints.c:19:6: warning: no previous prototype for ‘apollo_irq_shutdown’ [-Wmissing-prototypes] 19 | void apollo_irq_shutdown(struct irq_data *data) | ^~~~~~~~~~~~~~~~~~~ arch/m68k/apollo/dn_ints.c:29:6: warning: no previous prototype for ‘apollo_irq_eoi’ [-Wmissing-prototypes] 29 | void apollo_irq_eoi(struct irq_data *data) | ^~~~~~~~~~~~~~ Fix this by making all local functions static. Signed-off-by: Geert Uytterhoeven --- arch/m68k/apollo/config.c | 8 ++++---- arch/m68k/apollo/dn_ints.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/m68k/apollo/config.c b/arch/m68k/apollo/config.c index fccbb40772dca6b9..0e6801eecbaf6361 100644 --- a/arch/m68k/apollo/config.c +++ b/arch/m68k/apollo/config.c @@ -29,7 +29,7 @@ u_long apollo_model; extern void dn_sched_init(void); extern void dn_init_IRQ(void); extern int dn_dummy_hwclk(int, struct rtc_time *); -extern void dn_dummy_reset(void); +static void dn_dummy_reset(void); #ifdef CONFIG_HEARTBEAT static void dn_heartbeat(int on); #endif @@ -107,7 +107,7 @@ static void __init dn_setup_model(void) } -void dn_serial_print (const char *str) +static void dn_serial_print(const char *str) { while (*str) { if (*str == '\n') { @@ -207,8 +207,8 @@ int dn_dummy_hwclk(int op, struct rtc_time *t) { } -void dn_dummy_reset(void) { - +static void dn_dummy_reset(void) +{ dn_serial_print("The end !\n"); for(;;); diff --git a/arch/m68k/apollo/dn_ints.c b/arch/m68k/apollo/dn_ints.c index 02cff7efc8342aa6..d97251fe0ab83045 100644 --- a/arch/m68k/apollo/dn_ints.c +++ b/arch/m68k/apollo/dn_ints.c @@ -5,7 +5,7 @@ #include #include -unsigned int apollo_irq_startup(struct irq_data *data) +static unsigned int apollo_irq_startup(struct irq_data *data) { unsigned int irq = data->irq; @@ -16,7 +16,7 @@ unsigned int apollo_irq_startup(struct irq_data *data) return 0; } -void apollo_irq_shutdown(struct irq_data *data) +static void apollo_irq_shutdown(struct irq_data *data) { unsigned int irq = data->irq; @@ -26,7 +26,7 @@ void apollo_irq_shutdown(struct irq_data *data) *(volatile unsigned char *)(picb+1) |= (1 << (irq - 8)); } -void apollo_irq_eoi(struct irq_data *data) +static void apollo_irq_eoi(struct irq_data *data) { *(volatile unsigned char *)(pica) = 0x20; *(volatile unsigned char *)(picb) = 0x20; From patchwork Thu Sep 7 13:41:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137672 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp55051vqo; Thu, 7 Sep 2023 10:49:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGI+OypUypULfWWZfk4Lmf0w0h042KqzOb8dt6gZZVQblDcquQg11rotJEhbOUVu4Sd5hM3 X-Received: by 2002:a05:6a20:2584:b0:14c:d494:77c5 with SMTP id k4-20020a056a20258400b0014cd49477c5mr467433pzd.13.1694108944141; Thu, 07 Sep 2023 10:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694108944; cv=none; d=google.com; s=arc-20160816; b=WRHoYdBkXbChiEdEyl7UVPeqCnSXaJ03ulNKtxdIAwg1+cL9/oYu1L6VJTDEc/HxVu pZmw/u1o6uVehyPtYrONWCb6TJ0Vfc51Ohp3Gptn4sUP6XRQbLej4iWadJHPx5Xf7Kzy eFQioMS4QpSHI8XZWOfxFu/RFD3dLgI8PThL2D6LstM8tCelziJs6G6Z0iCJrU0qAZ/f 1CFYCnesmkXbMiaxLvfTnj2tOP3uFUdihrbMtS52HtdiOuW4VQ5OvYkMUQiBUFiWp9fL GgBOztOH2KZzU4T8Mt4KXjHcNpJhKQlp7XSOKh0lBAPEb6bpaZHgrRXN290lJYpuBvVg BwlA== 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=6750YCgRONLxqQI+7fHVb3ZB9oSqdA9MNRFv7qdfMJo=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=vTqXbBvsZiim/Efxpm55BN7DqGMOnOVlzjgpZHXtKHOJdDQtBr3XKWFfl70/CoWw2g mwn/UmucQSRhXQUfs5V01bATqpY5wokLdVY0gC2pel/UMyv5GIc4UE3ea8ZwpzVdVBXm jKciX8j++ANgwDePwuGvI/EY0bR7FsYvs69Aq79f5rJkjmzECVWaF2vmehSVXAzy5cow LgZTNlQxBtga+zKfRxgqOUR4ZjIXv5EigxcvN9olFylVByLz/tOAv5Q8/fOWzN5cxPzC yEZorZ9/wauzKLHd0a35zj1g5eSFqu1ir/7XkPefJZ/5PhDptG8/fAS+OWQv4850pufp yNwA== 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 a25-20020a62d419000000b0068bffc365d2si31307pfh.13.2023.09.07.10.48.56; Thu, 07 Sep 2023 10:49:04 -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 S238508AbjIGQQW (ORCPT + 37 others); Thu, 7 Sep 2023 12:16:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbjIGQPc (ORCPT ); Thu, 7 Sep 2023 12:15:32 -0400 Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [195.130.137.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C0D230E1 for ; Thu, 7 Sep 2023 09:13:00 -0700 (PDT) Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4RhL6D01cmz4x1N8 for ; Thu, 7 Sep 2023 15:43:00 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:c214:2eac:128d:f67e]) by albert.telenet-ops.be with bizsmtp id j1hy2A00A2mGBSJ061hyaJ; 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-002m9S-MR; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGf-00CMhB-Ur; 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 27/52] m68k: bvme6000: Make bvme6000_abort_int() static Date: Thu, 7 Sep 2023 15:41:28 +0200 Message-Id: <8e7e2013e00a35c2b74dc1ca16e93871b2d742d2.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: 1776401980077364377 X-GMAIL-MSGID: 1776401980077364377 When building with W=1: arch/m68k/bvme6000/config.c:133:13: warning: no previous prototype for ‘bvme6000_abort_int’ [-Wmissing-prototypes] 133 | irqreturn_t bvme6000_abort_int (int irq, void *dev_id) | ^~~~~~~~~~~~~~~~~~ Fix this by making bvme6000_abort_int() static. There was never a user outside arch/m68k/bvme6000/config.c. Signed-off-by: Geert Uytterhoeven --- arch/m68k/bvme6000/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/bvme6000/config.c b/arch/m68k/bvme6000/config.c index 3a1d90e399e016cf..e604fe6602461334 100644 --- a/arch/m68k/bvme6000/config.c +++ b/arch/m68k/bvme6000/config.c @@ -130,7 +130,7 @@ void __init config_bvme6000(void) } -irqreturn_t bvme6000_abort_int (int irq, void *dev_id) +static irqreturn_t bvme6000_abort_int(int irq, void *dev_id) { unsigned long *new = (unsigned long *)vectors; unsigned long *old = (unsigned long *)0xf8000000; From patchwork Thu Sep 7 13:41:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137677 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp72374vqo; Thu, 7 Sep 2023 11:18:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGQea33zUyZ/2SVxO06wIe8rmONAUfHgNjPbS0/+VYGUjKCkml24YvXqI0RCZuTafEwFawv X-Received: by 2002:a17:906:1baa:b0:9a1:abf8:76ad with SMTP id r10-20020a1709061baa00b009a1abf876admr119747ejg.34.1694110739467; Thu, 07 Sep 2023 11:18:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694110739; cv=none; d=google.com; s=arc-20160816; b=HrDf40eBveAcCfVGswH5R9k+oADf7Q3rB7xt6zM/NZKLaaBxRlefiZ6yU+k59O7Tr9 xUKR92aXREsRNPRSK28IIqg15xFk3WcLImg2mjvXiDwBiM8YHlhrar/adyDaW95Axlic yc3olm6GXM7btdUXcvlMu2g26yFvHOdlzmzAY+bjBJDBcopj9WzNPqv6bTRTFCi7R63w fTepm1evRa0Ge/aZX7rjKUMDkpR/aziWE7+bRvpVaUh66o5ZJwMH1P+bKlATwdyBXzBk mRCqSni4+d1AKxzF8OTRnB3//9SvWnhV9XxlxsEQBYdADU0VHOuOok5KXA/plWaF4FBH Z+qw== 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=e63jnB+PaN7sVxVf1UDYnNpMSwcikGlSe0jySCm44cU=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=XjSXdkc43/thA9LgcbYyHxQgFfJxX37QgHWf2k1Z2j0WB++Q6OuJUeYYpt//81IcD0 u0cb233oWHsTgNZjktin7/ryn0KKF594ugRDzBHtXc/zN5sZxKt8V6cxrvVK3+q7pTr4 TllrdSG+VoYeLdcdrcgJWm8gU0a+tQDeGVqIgnKdTZnjiPT9T5O7DX9oX16KL9MV8Efj WgnjR6NFJ6zcArf/ipQ1/AevKnJBQHQLWVGiXfZq919682JroS7b71yG3FcfapmIFifJ IJF+31zWSouvdEeCND6oOb/t4Ff5atYGCiSFTrRhwS4WEn8TcHTtRMJM7o9BfWe2xRvJ jShw== 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 r5-20020a170906a20500b0099bc56aa1c8si10703112ejy.253.2023.09.07.11.18.31; Thu, 07 Sep 2023 11:18:59 -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 S240964AbjIGQVB (ORCPT + 99 others); Thu, 7 Sep 2023 12:21:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235345AbjIGQUb (ORCPT ); Thu, 7 Sep 2023 12:20:31 -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 CC06D270C for ; Thu, 7 Sep 2023 09:16:47 -0700 (PDT) Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by cantor.telenet-ops.be (Postfix) with ESMTPS id 4RhL5L5zphz4x6gM 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 albert.telenet-ops.be with bizsmtp id j1hy2A0052mGBSJ061hyaF; 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-002m9V-NB; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGf-00CMhF-VW; 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 28/52] m68k: hp300: Include "time.h" for hp300_sched_init() Date: Thu, 7 Sep 2023 15:41:29 +0200 Message-Id: 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=unavailable 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: 1776403862699526172 X-GMAIL-MSGID: 1776403862699526172 When building with W=1: arch/m68k/hp300/time.c:101:13: warning: no previous prototype for ‘hp300_sched_init’ [-Wmissing-prototypes] 101 | void __init hp300_sched_init(void) | ^~~~~~~~~~~~~~~~ Fix this by including "time.h". Signed-off-by: Geert Uytterhoeven --- arch/m68k/hp300/time.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/m68k/hp300/time.c b/arch/m68k/hp300/time.c index 1d1b7b3b5dd41583..72621fb9f3e663bd 100644 --- a/arch/m68k/hp300/time.c +++ b/arch/m68k/hp300/time.c @@ -20,6 +20,8 @@ #include #include +#include "time.h" + static u64 hp300_read_clk(struct clocksource *cs); static struct clocksource hp300_clk = { From patchwork Thu Sep 7 13:41:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137665 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp44283vqo; Thu, 7 Sep 2023 10:29:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGi6sl7wGo0uXH+KrKo4AsGJfvMVTUSP3b0VXwZDcYfw+SO89piFgMGLxl/q0cAaLFm/Nwa X-Received: by 2002:a19:5f54:0:b0:500:8fb1:7a51 with SMTP id a20-20020a195f54000000b005008fb17a51mr114657lfj.14.1694107767508; Thu, 07 Sep 2023 10:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694107767; cv=none; d=google.com; s=arc-20160816; b=XladfVKalGJjNfXq9yeG8eb9C+NC5HeubYoPW17FusFhNzr6ubjF0GWUxYbNTgCkZO 31tmB6Mb/VhpnlEz7a5tHpVWToXF05fQHzZMQMOYoJOLbHAfSVRAYeDC5vnTs8Jfh4Iq 0GsDWyxSF6vvpE5QH6ZgP7HJDhEGFNgmnUn4VtO6LJDR1iIKHqMM3W5gxozJ7z/4XApi kydPe/ZcVzHp2Yz1xU8+/yICVeAEoMEHvaCQHRpRZLPD8BWo67hbOGqZc7AjT+2D1hLm vro+E7n1U0OSyniqYAM0eCYyCkk1yMxLP0JLMtsI9Acj6wEV7Tx8ksDL8Otj0FBqo+AZ jmiw== 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=HUzvc5eYCK580df0RVAHRGzuB4B2Fn1Twh2GwaUQyiE=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=uwJkRR7ZK1i0G6Xyw4LHhSIbNDafWpOsnSklFHJ6hhd6P8Mcxn4lN3Te2NtB3DMsZd UA4axEbhzY2WS4uCBK0GRNvxkXOTXendMTGVkFs4k4w618UurODRK5f6DmxS5QI+XdFn fr4u047MD4meF55f57dkSXYHL8ob4ujX1fNCtr6c88Btuw2LuD9+A2hZ6JXi4rWRjzE5 WyfCcMB2vJ2Hw2AUChPM5dC2e2lyuLcOE9r9DglYJzc3N1Rd7BB6KSmvbcb/nqeRRnJR WIguXqQooR1KezeUDhtZThJOONsrz7QlY4UEyV5ExHFZ4It0E/BMpxT4oH9H0U1OyP/s +QPQ== 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 f19-20020a056402151300b005255bb59aeasi30273edw.560.2023.09.07.10.29.17; Thu, 07 Sep 2023 10:29:27 -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 S239771AbjIGQVI (ORCPT + 37 others); Thu, 7 Sep 2023 12:21:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234951AbjIGQUb (ORCPT ); Thu, 7 Sep 2023 12:20:31 -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 3F8F059D1 for ; Thu, 7 Sep 2023 09:16:46 -0700 (PDT) Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by cantor.telenet-ops.be (Postfix) with ESMTPS id 4RhL534sl7z4x7Zt for ; Thu, 7 Sep 2023 15:41:59 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by laurent.telenet-ops.be with bizsmtp id j1hy2A0081C8whw011hytq; 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-002m9h-PD; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGg-00CMhV-1M; Thu, 07 Sep 2023 15:41:58 +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 31/52] m68k: mac: Make mac_platform_init() static Date: Thu, 7 Sep 2023 15:41:32 +0200 Message-Id: <3066048d4ecc63dd427b269447f1665441879eb5.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=unavailable 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: 1776400746244862391 X-GMAIL-MSGID: 1776400746244862391 When building with W=1: arch/m68k/mac/config.c:961:12: warning: no previous prototype for ‘mac_platform_init’ [-Wmissing-prototypes] 961 | int __init mac_platform_init(void) | ^~~~~~~~~~~~~~~~~ Fix this by making mac_platform_init() static. There was never a user outside arch/m68k/mac/config.c. Signed-off-by: Geert Uytterhoeven --- arch/m68k/mac/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/mac/config.c b/arch/m68k/mac/config.c index 382f656c29eaeef2..d56affefd5cabeb5 100644 --- a/arch/m68k/mac/config.c +++ b/arch/m68k/mac/config.c @@ -958,7 +958,7 @@ static const struct pata_platform_info mac_pata_data __initconst = { .ioport_shift = 2, }; -int __init mac_platform_init(void) +static int __init mac_platform_init(void) { phys_addr_t swim_base = 0; From patchwork Thu Sep 7 13:41:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137667 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp46279vqo; Thu, 7 Sep 2023 10:32:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIc9qcLIpmNbxNXecGopc4Wb/kk7+5UzrA+UQ0R9hJTDoPZ36NTyE9s+k1IGqbo6QGnxE9 X-Received: by 2002:a05:6512:1313:b0:4fb:89cd:9616 with SMTP id x19-20020a056512131300b004fb89cd9616mr169364lfu.0.1694107972735; Thu, 07 Sep 2023 10:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694107972; cv=none; d=google.com; s=arc-20160816; b=czdjB31H7tpwyEQ+641oGe1DJL311D6XE4sSEmEkB6ewIoG+ACk3gTPEJ7Tg00IE71 4yVN8Kntq5nyoqi5wAuKz9/kgI7x31A1Srx9Bqc/sWS/0S/+uBCqRgSh5z864epyE9mS guNuyzTekvTlnyRqEgiW2zxhhptyEt2evCwuRvx52/ZPl54JCas4aCSSZSu2nGJv1DB4 cXAh14Qn83/7Acb12vaaV4f6qXwQ1/lKGzn6/gwQKQ8RuoXv/aaBPjo4b1OcVV7dUQhF jgLMhZEVqfI/4jZlMbmccEjqzbgmV8YNgMOzBL6T9v79DSTadGDIsfT4sj65IapAsIre 9gTg== 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=wkU+Qv/Yjli9uW5JZuTgK/NCiTvIc0KX8BjLbNPu1nE=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=PK6FPzc3BLn3Nlo+gkATa0En8L7N63MIrluxyJ68+fYBC3OmnTexE29bMf6/npY8gJ 9Fb7ibBzy2JWQR9qBYm9/dUwoLULsVl6z76ueGE4QTsG2ifqRsntKuLHZt7yxm4Z3I8Q 2LueAPkT9jhCUKwNsX86SfjaUvNKlRIElVGq7pqHh1DptOm5eEulVawJww/F/0ljQkWH o1gjHlJl9KqJtmrUWd/I5v2L/xOJdlk+9GwsRsoquYH0EO4GfuaLNtiS4IbEf7LNd/iy xF3s1Beiu4jERnT7aZ5A3LDF7vcs0rSDGS8EPFM+8G1aYnMA3K30ZJrRp2bcSiNQMEq1 tdRg== 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 r10-20020aa7c14a000000b0052559f0e905si46682edp.91.2023.09.07.10.32.41; Thu, 07 Sep 2023 10:32:52 -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 S239713AbjIGQUu (ORCPT + 37 others); Thu, 7 Sep 2023 12:20:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239803AbjIGQUV (ORCPT ); Thu, 7 Sep 2023 12:20:21 -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 AE1773585 for ; Thu, 7 Sep 2023 09:16:15 -0700 (PDT) Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by cantor.telenet-ops.be (Postfix) with ESMTPS id 4RhL534xw3z4x8kN for ; Thu, 7 Sep 2023 15:41:59 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by xavier.telenet-ops.be with bizsmtp id j1hy2A00A1C8whw011hywq; 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-002m9y-SO; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGg-00CMhp-4O; Thu, 07 Sep 2023 15:41:58 +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 35/52] m68k: mvme16x: Add and use "mvme16x.h" Date: Thu, 7 Sep 2023 15:41:36 +0200 Message-Id: <84050afd37df01b14804a51d08afa3837492eb30.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=unavailable 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: 1776400961570983417 X-GMAIL-MSGID: 1776400961570983417 When building with W=1: arch/m68k/mvme16x/config.c:208:6: warning: no previous prototype for ‘mvme16x_cons_write’ [-Wmissing-prototypes] 208 | void mvme16x_cons_write(struct console *co, const char *str, unsigned count) | ^~~~~~~~~~~~~~~~~~ Fix this by introducing a new header file "mvme16x.h" for holding the prototypes of functions implemented in arch/m68k/mvme16x/. Signed-off-by: Geert Uytterhoeven --- arch/m68k/kernel/early_printk.c | 4 ++-- arch/m68k/mvme16x/config.c | 2 ++ arch/m68k/mvme16x/mvme16x.h | 6 ++++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 arch/m68k/mvme16x/mvme16x.h diff --git a/arch/m68k/kernel/early_printk.c b/arch/m68k/kernel/early_printk.c index 7d3fe08a48eb0319..3cc944df04f65ef1 100644 --- a/arch/m68k/kernel/early_printk.c +++ b/arch/m68k/kernel/early_printk.c @@ -12,8 +12,8 @@ #include #include -extern void mvme16x_cons_write(struct console *co, - const char *str, unsigned count); + +#include "../mvme16x/mvme16x.h" asmlinkage void __init debug_cons_nputs(const char *s, unsigned n); diff --git a/arch/m68k/mvme16x/config.c b/arch/m68k/mvme16x/config.c index b6833862ea6b1530..9bb9a33e43c246c4 100644 --- a/arch/m68k/mvme16x/config.c +++ b/arch/m68k/mvme16x/config.c @@ -38,6 +38,8 @@ #include #include +#include "mvme16x.h" + extern t_bdid mvme_bdid; static MK48T08ptr_t volatile rtc = (MK48T08ptr_t)MVME_RTC_BASE; diff --git a/arch/m68k/mvme16x/mvme16x.h b/arch/m68k/mvme16x/mvme16x.h new file mode 100644 index 0000000000000000..159c34b700394116 --- /dev/null +++ b/arch/m68k/mvme16x/mvme16x.h @@ -0,0 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +struct console; + +/* config.c */ +void mvme16x_cons_write(struct console *co, const char *str, unsigned count); From patchwork Thu Sep 7 13:41:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137680 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp77490vqo; Thu, 7 Sep 2023 11:29:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDsaA7+EsBJOGUGFYww4dbs2KVz0KJVp95Y0pGLA8TJYse+WBI7rq9nVi6JS5yWiIM1kUu X-Received: by 2002:a05:6a20:9384:b0:14c:4785:497f with SMTP id x4-20020a056a20938400b0014c4785497fmr632945pzh.1.1694111383982; Thu, 07 Sep 2023 11:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694111383; cv=none; d=google.com; s=arc-20160816; b=CzxiPfn0OczyclIV2i+3RF/+D7t+OTipVZklMri59PibQN24usNTnE7yTZtASRa19o Zi2d9QvzWl4Dw9DKJW4eTxpdwEF+m7lavYkNIW9xy+9qy2oFCvjp9RPhKB+4pCzBdLR0 pJy3tTUAom0W7KTW2ld4a8Bidh6nvyZcTel7xDYi8p7tDKoo43II9HXxsJrv7GCL2UuC 3tuwwdvhpNolpJ2D/Qjt0g6Eop4IZfeY8ilKikMJbFpeFn/BAC18fM/n4qUePKTM6yA4 xm1cUFlSA/SPS5Fi0OlBKiNTIc29MlxA1jMdML8c5hBTZpDiuilVux6ub0iIukElzrPo wNEw== 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=Vi2wlyY+HBFG639C7F5UO6D/6st1IitxV9DFfpFp8I8=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=i9XglzWjv9WpuPbgXR+N6IaQYxVShFEIvuZWY07sRWUVOueqeFjKtJbmaejGNdIKKy czJhq47Mac8TUpHppq2Jma4N09Eiiyf4erjuqXTr8+UKn66ryyjUOHuR+RKplu9gW+Bw 4vSPAof9LN/ATEzLDKLNMF0NK+aFd04b+4Rd+mNPQbEMdBnQg27tHxMDTwLSPGuAAbJ3 sw3h7SYOOMJp3T2ywx6FBkze8fxxbIAdkDrrNg0c638PmJ1/HJpeYUPc7aef07iwgWXA 0IoaYTvY8u/Vn21NocYthS8ITZqxLz7HW97kbgtecwe/8gpna2yhHjgcJbRsFQYVTDas TlfA== 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 e19-20020a656793000000b005638183ab90si13324217pgr.611.2023.09.07.11.29.13; Thu, 07 Sep 2023 11:29:43 -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 S237013AbjIGQMO (ORCPT + 99 others); Thu, 7 Sep 2023 12:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238054AbjIGQLr (ORCPT ); Thu, 7 Sep 2023 12:11:47 -0400 X-Greylist: delayed 1775 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 07 Sep 2023 09:08:36 PDT Received: from gauss.telenet-ops.be (gauss.telenet-ops.be [IPv6:2a02:1800:120:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8D3830EA for ; Thu, 7 Sep 2023 09:08:36 -0700 (PDT) Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by gauss.telenet-ops.be (Postfix) with ESMTPS id 4RhL534qBKz4x6x5 for ; Thu, 7 Sep 2023 15:41:59 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by michel.telenet-ops.be with bizsmtp id j1hy2A00n1C8whw061hyuv; 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-002mA1-T2; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGg-00CMhu-51; Thu, 07 Sep 2023 15:41:58 +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 36/52] m68k: q40: Add and use "q40.h" Date: Thu, 7 Sep 2023 15:41:37 +0200 Message-Id: <16313fd669800e0e53d5aacdabd2405d6d4c99b1.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=unavailable 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: 1776404538408865938 X-GMAIL-MSGID: 1776404538408865938 When building with W=1: arch/m68k/q40/q40ints.c:84:13: warning: no previous prototype for ‘q40_init_IRQ’ [-Wmissing-prototypes] 84 | void __init q40_init_IRQ(void) | ^~~~~~~~~~~~ arch/m68k/q40/q40ints.c:112:6: warning: no previous prototype for ‘q40_mksound’ [-Wmissing-prototypes] 112 | void q40_mksound(unsigned int hz, unsigned int ticks) | ^~~~~~~~~~~ arch/m68k/q40/q40ints.c:152:6: warning: no previous prototype for ‘q40_sched_init’ [-Wmissing-prototypes] 152 | void q40_sched_init (void) | ^~~~~~~~~~~~~~ Fix this by introducing a new header file "q40.h" for holding the prototypes of functions implemented in arch/m68k/q40/. Signed-off-by: Geert Uytterhoeven --- arch/m68k/q40/config.c | 6 ++---- arch/m68k/q40/q40.h | 6 ++++++ arch/m68k/q40/q40ints.c | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 arch/m68k/q40/q40.h diff --git a/arch/m68k/q40/config.c b/arch/m68k/q40/config.c index c78ee709b45879c7..2c51c2b4a4fbbf79 100644 --- a/arch/m68k/q40/config.c +++ b/arch/m68k/q40/config.c @@ -36,16 +36,14 @@ #include #include -extern void q40_init_IRQ(void); +#include "q40.h" + static void q40_get_model(char *model); -extern void q40_sched_init(void); static int q40_hwclk(int, struct rtc_time *); static int q40_get_rtc_pll(struct rtc_pll_info *pll); static int q40_set_rtc_pll(struct rtc_pll_info *pll); -extern void q40_mksound(unsigned int /*freq*/, unsigned int /*ticks*/); - static void q40_mem_console_write(struct console *co, const char *b, unsigned int count); diff --git a/arch/m68k/q40/q40.h b/arch/m68k/q40/q40.h new file mode 100644 index 0000000000000000..3146679bde0dab97 --- /dev/null +++ b/arch/m68k/q40/q40.h @@ -0,0 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* q40ints.c */ +void q40_init_IRQ(void); +void q40_mksound(unsigned int hz, unsigned int ticks); +void q40_sched_init(void); diff --git a/arch/m68k/q40/q40ints.c b/arch/m68k/q40/q40ints.c index 127d7ecdbd49ecd9..10f1f294e91f9705 100644 --- a/arch/m68k/q40/q40ints.c +++ b/arch/m68k/q40/q40ints.c @@ -24,6 +24,8 @@ #include #include +#include "q40.h" + /* * Q40 IRQs are defined as follows: * 3,4,5,6,7,10,11,14,15 : ISA dev IRQs From patchwork Thu Sep 7 13:41:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137659 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp27755vqo; Thu, 7 Sep 2023 10:02:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE21eImz/S3VdJcJ2r5NbgXMHDKdTQNA78MlOrwLn0SfXX/Gs/tpoGYW/3NX8bMzwZ6unfs X-Received: by 2002:a17:902:ab95:b0:1b8:1bac:3782 with SMTP id f21-20020a170902ab9500b001b81bac3782mr193878plr.6.1694106127040; Thu, 07 Sep 2023 10:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694106127; cv=none; d=google.com; s=arc-20160816; b=dIde/s5YX8EIDxOokr1ORj7MBR1YvSdgchVtfkca+9ORD8dT5XuSCU0Xhkdq6zfZOd 2cMUGAUhfeQTGjTFYiRcigm7GwoWQTeUVzRcByWor5dQ1JPCYhJh2SRm93DmE97s3zHi 1ipDKobMSgvzIwCdGok3YD8gyXrF41BXt+l9upR3l7tAcVuo8PXVK+rKxY0aX4lbiFB2 85+EY9EQZKsyV0Gv0GO52bday+EvqeanWuX9PyJnr7v2DF86h0bqqrPvm9r5iV7F8cxt nKE5VZgmxIhm6/Is4lj0R/2/sOvTChovqYqYxbR8ZyGPLKKm/+rgEZJDAimxjdPxvc6/ 0GCA== 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=spu4BJneQVnvQqBCVTuGt7ebRMDV7ZCU4VM2qJj8nco=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=WJXcL/lkWc++ousbbmFmvY61SLbRURCPmRNEEnbMsSEB/x6pmdSdWJRGx3HWQcUMrD ovgz6yvEkxvj14gsjreAFULnHiXlVAb49+GTCQOstaPUsIfmR+bexhz8XqGYrNfdiDZu fwbBdMh09sonbtmx3mFOJpUNC+Ir0Y3nJhSM+p/rFKaWgzYAgxPfqoyuqmVeR7+Z7/uJ 4JrxYNVq/1MAc/lvOO582104uU/LzMEdMFvZKjZLR3DWmQ3gY/KeIRil/B+ypHu9jQda NmdR4/9p1k69f2UQ9X0zqjFnu4Vzw1SlgeA5LIF/F4MpQlFybRhrcQVWkbMarglJZ1JZ yCfQ== 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 kg7-20020a170903060700b001bba53994acsi2660plb.243.2023.09.07.10.01.54; Thu, 07 Sep 2023 10:02:07 -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 S234501AbjIGQNP (ORCPT + 37 others); Thu, 7 Sep 2023 12:13:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237990AbjIGQMA (ORCPT ); Thu, 7 Sep 2023 12:12:00 -0400 Received: from gauss.telenet-ops.be (gauss.telenet-ops.be [IPv6:2a02:1800:120:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51AE1525B for ; Thu, 7 Sep 2023 09:09:02 -0700 (PDT) Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by gauss.telenet-ops.be (Postfix) with ESMTPS id 4RhL535jwCz4x7f8 for ; Thu, 7 Sep 2023 15:41:59 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by andre.telenet-ops.be with bizsmtp id j1hy2A00V1C8whw011hyGF; 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-002mA6-Te; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGg-00CMhy-5d; Thu, 07 Sep 2023 15:41:58 +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 37/52] m68k: sun3/3x: Include for config_sun3*() Date: Thu, 7 Sep 2023 15:41:38 +0200 Message-Id: <31d7b55e5a05a1d4261b808a3b801f7de3bfda99.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=unavailable 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: 1776399026337173512 X-GMAIL-MSGID: 1776399026337173512 When building with W=1: arch/m68k/sun3/config.c:123:13: warning: no previous prototype for ‘config_sun3’ [-Wmissing-prototypes] 126 | void __init config_sun3(void) | ^~~~~~~~~~~ arch/m68k/sun3x/config.c:42:13: warning: no previous prototype for ‘config_sun3x’ [-Wmissing-prototypes] 42 | void __init config_sun3x(void) | ^~~~~~~~~~~~ Fix this by including Fixes: 91d7b75a5888c182 ("m68k: Add asm/config.h") Signed-off-by: Geert Uytterhoeven --- arch/m68k/sun3/config.c | 1 + arch/m68k/sun3x/config.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/m68k/sun3/config.c b/arch/m68k/sun3/config.c index 203f428a0344a735..b932250c9e7ffbae 100644 --- a/arch/m68k/sun3/config.c +++ b/arch/m68k/sun3/config.c @@ -32,6 +32,7 @@ #include #include #include +#include char sun3_reserved_pmeg[SUN3_PMEGS_NUM]; diff --git a/arch/m68k/sun3x/config.c b/arch/m68k/sun3x/config.c index 37121a0f12531fef..3a10cda636fc38fb 100644 --- a/arch/m68k/sun3x/config.c +++ b/arch/m68k/sun3x/config.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "time.h" From patchwork Thu Sep 7 13:41:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137683 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp80048vqo; Thu, 7 Sep 2023 11:34:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG76QDXVqSOnzze3kkGNhVWuYeiRzwsnPMpHHZ068x0WtbN19d/Nnl/Vp9po++pC7O0WGYW X-Received: by 2002:a17:906:1d9:b0:9a6:5453:2013 with SMTP id 25-20020a17090601d900b009a654532013mr81535ejj.3.1694111667986; Thu, 07 Sep 2023 11:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694111667; cv=none; d=google.com; s=arc-20160816; b=Jdv3u+E8HZbjxSwAAmU9cHzNFjFIcYjSzaA57ImeKFOJCxAA/nlpowa0FZc6qhzC+S OhjkSpuUWbKXwEEI+UFdr+yWWqqGWJxwFJwRw7iy9zflMIOXP9e1vy7GjNNvvczEUbp9 sxnWUAKUbtqh+bCvGMx5nf1yaA/9seQSdXspS9hM6t04sLTK8/4/0TWQ5vUBcVwKfd1A rwwG1J3rmuF4SzhYj+wnCZDj3reuqoZk3lsIIhQ5nxQV/V2fre1JgKsBa9q4MhZ95JKd CdxVlzggiXvB3VTmJgZ/nVeOmxJC+j5bomgbLd7Pt+31i1NRHG97/MmL3vu41V3ikGD8 TKfQ== 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=I8owu3q+4OIe8j+t6wf0NnXve2yUIAiZRc6UzgS58cE=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=umo2Iy7NQjc7KTbw05ccm0zUuH4sXG8y791z+W5C9+sdAXozXSiJB7h1W7oGBggsAD K5a9z0/oEUL2leqlIxKglybU1zi/pB8U6k3RPGQgUGfoPopOJ46HVHhRXdJiSFQIbemW WwMpWQVM486jmqZJCp4Qp8RHErBqHKNFmrMKqBZZ+Enp9e+3vKc/1L5z/g5DS7LxsGRb yJm+WGrThYlruI+4FwcoTX6TSP/m2Yo1wOx7t5dLmgPlCFgxISDbFFoKV4b/xz1NU0zS u2+6D1JsiWg3pwtZ8gE4FtC45MYKPKajz/3BAfEseOHhj5wqZQtrRqqYMR2NdL80rw7C Evaw== 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 cw13-20020a170906c78d00b009a2154511e7si11259114ejb.74.2023.09.07.11.34.15; Thu, 07 Sep 2023 11:34:27 -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 S242986AbjIGP3H (ORCPT + 44 others); Thu, 7 Sep 2023 11:29:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244565AbjIGP1x (ORCPT ); Thu, 7 Sep 2023 11:27:53 -0400 Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [IPv6:2a02:1800:110:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 069DB1BEF for ; Thu, 7 Sep 2023 08:27:29 -0700 (PDT) Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4RhL535jHGz4x3Hh for ; Thu, 7 Sep 2023 15:41:59 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by baptiste.telenet-ops.be with bizsmtp id j1hy2A00V1C8whw011hyX8; 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 1qeFGR-002mAM-08; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGg-00CMiH-8J; Thu, 07 Sep 2023 15:41:58 +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 41/52] m68k: sun3: Add missing asmlinkage to sun3_init() Date: Thu, 7 Sep 2023 15:41:42 +0200 Message-Id: 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: 1776404836581501052 X-GMAIL-MSGID: 1776404836581501052 sun3_init() is called from assembly code, so it should be marked asmlinkage for documentation purposes. Signed-off-by: Geert Uytterhoeven --- arch/m68k/sun3/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/m68k/sun3/config.c b/arch/m68k/sun3/config.c index b932250c9e7ffbae..4550cf25b6f0880a 100644 --- a/arch/m68k/sun3/config.c +++ b/arch/m68k/sun3/config.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -49,7 +50,7 @@ static void sun3_get_hardware_list(struct seq_file *m) seq_printf(m, "PROM Revision:\t%s\n", romvec->pv_monid); } -void __init sun3_init(void) +asmlinkage void __init sun3_init(void) { unsigned char enable_register; int i; From patchwork Thu Sep 7 13:41:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137668 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp46726vqo; Thu, 7 Sep 2023 10:33:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+XOLl3IfyPA2FprN369NLK85g0dPIYWI1G3wXMLBdg/z4oxrZCYU72ShCuNsNrJP8yE8D X-Received: by 2002:a17:902:c945:b0:1bb:32de:95c5 with SMTP id i5-20020a170902c94500b001bb32de95c5mr275727pla.65.1694108018891; Thu, 07 Sep 2023 10:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694108018; cv=none; d=google.com; s=arc-20160816; b=gDbSCwFwoZ/xZ9yXckAKeh0FShmoueLHzVuRDSpbOstxxkDLnYX0aVGkv0FZMBpAqd aJJBaTjeKSu1qrpdde+jJ6hRHCP4xyMTVQ6wZbrGkUJ0usNHtqxEiaD1l2VyX3RPzJzr oQAFw4z5fcn+QxmomxEh99DcZjAn3G5SfV+XsBwa4LEnjEo6cnLnkqATCNBNA2aORAhv qK9CcFCWCkC05+4d/U81rWG2J4fmgT0AvMjmVDtOP2iFmVdN4NQxbr1Mxs1fwgJ8UAYI opjnnva50x0Pg8Yiy/oKGODQiFPKKq2ifKA17lnCci4CeykkLqNkj6PDdiVow/29cSxy QisA== 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=jVDb5wrgt1xb+x1Oxq6DiKf252HbzoLtwykL0y1nTG8=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=i+Py77T94lywDSPosVxLwM1synBgVgKsMiD3eP7DZTWfpmH3strbZq9IFMBjRLuJ/c w0YNj7iUN0RkaqPsqQEslSpwqx3b3QFWsh6FUrNlgl3IsqCDjseAPm5kAOmmYiqktz2s F0auOn1K0R1pR4NgR8hWeqI4BmL0JhSyW3jzUgVtuRrG5od8+fygb3YHDltkTREJVk3x e9Kj8Rtt9nmJG6fbRcysUovPQy1f+k+/RTpdYi1DzskMpm33Cxe/l5VssVjsxNaOra81 uaRrXt0HZS6tnXzC4PUuKHiDjbejUh6tEkNZJHf1cmL859eNWz1VXcz8E5lT/gROF6Zf 1bUg== 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 w10-20020a170902e88a00b001b87b716f87si40171plg.329.2023.09.07.10.33.31; Thu, 07 Sep 2023 10:33:38 -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 S244912AbjIGPgh (ORCPT + 44 others); Thu, 7 Sep 2023 11:36:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344276AbjIGPcv (ORCPT ); Thu, 7 Sep 2023 11:32:51 -0400 Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [IPv6:2a02:1800:110:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 707E51BFD for ; Thu, 7 Sep 2023 08:32:29 -0700 (PDT) Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4RhL535w7gz4x4RM for ; Thu, 7 Sep 2023 15:41:59 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by baptiste.telenet-ops.be with bizsmtp id j1hy2A00X1C8whw011hyX9; 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 1qeFGR-002mAP-0h; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGg-00CMiM-8w; Thu, 07 Sep 2023 15:41:58 +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 42/52] m68k: sun3: Remove unused orig_baddr in free_baddr() Date: Thu, 7 Sep 2023 15:41:43 +0200 Message-Id: <495c7f925f346880b26e21dea63b30cdfcb2dcdf.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: 1776401010251404568 X-GMAIL-MSGID: 1776401010251404568 When building with W=1: arch/m68k/sun3/sun3dvma.c: In function ‘free_baddr’: arch/m68k/sun3/sun3dvma.c:208:23: warning: variable ‘orig_baddr’ set but not used [-Wunused-but-set-variable] 196 | unsigned long orig_baddr; | ^~~~~~~~~~ Fix this by removing the unused variable and assignment, which were futile since their introduction in v2.4.5.2. Signed-off-by: Geert Uytterhoeven --- arch/m68k/sun3/sun3dvma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/m68k/sun3/sun3dvma.c b/arch/m68k/sun3/sun3dvma.c index f66b2413209069f2..6ebf52740ad7c00d 100644 --- a/arch/m68k/sun3/sun3dvma.c +++ b/arch/m68k/sun3/sun3dvma.c @@ -193,9 +193,7 @@ static inline int free_baddr(unsigned long baddr) unsigned long len; struct hole *hole; struct list_head *cur; - unsigned long orig_baddr; - orig_baddr = baddr; len = dvma_entry_use(baddr); dvma_entry_use(baddr) = 0; baddr &= DVMA_PAGE_MASK; From patchwork Thu Sep 7 13:41:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137669 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp50553vqo; Thu, 7 Sep 2023 10:40:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPezeqxx+Bik7B+O+41KY+WbzkJEtrPnAtywleX2U5Tp6p4zhDtO/B0cgksNRP7iJFKSbq X-Received: by 2002:aa7:c6c8:0:b0:523:2e0e:5462 with SMTP id b8-20020aa7c6c8000000b005232e0e5462mr7859eds.42.1694108435482; Thu, 07 Sep 2023 10:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694108435; cv=none; d=google.com; s=arc-20160816; b=tnTFNe0Ahhpksm+HlAOFtoq53JqfIcC6xRgP8nACCgWYRrM8OpOrpIMlfzy2DgzFlU orf3JbUUzCHnyKcu27eXPSuP5n39AH0Y7z7uczKeJlxtWyFNhFLHE7O9vSI1CcdH3RQN Sk5tZXOwhYN+gydSQX+5ROMx1b0hOniQJcvKJUrRL6+DeehzhwKlDUYQZ3AJ52JoV8V+ 0/EzUuov1zXK/iQGlW4v5BtIfSOa4smyEakzp1nauH25jaPs/nckI0WFM94tYmkcJIX1 CoOdm80dTGnkgjqQeYlbG6X0iWpDbIsdRVbwPSawSIU8PU9974cepsfPestXT6Qvigsl NUTg== 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=Twz7r46iyfNnOJ7Z6QjCqmCAnNwy4hzl2u+7eJ2EkJ0=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=CVqJuiVrPztsD3rWBzNnePDCMppEzYvgBJwrE6uLXHaJjY5M6ZQa5pjwZnwfMQjnYK Q/nuibq9e/Ee4P5u6tUmHxEwTL+rprg4ilNkuC53GdLQdywcTtmr/jkFrktinWcsaE0j /ilDUqpbDVNx82l/8UyvYapibIM0C0rssH1UuGQChanTWpHBLTJ71CAYyXmvAiqsRx3f ysLmsVYqFfcY8VR+efsIXydFgVGc1VHBbb9p8ulVYM4BCcd64jRkDII7YSGYtUJDMlLG t83LYcp5XhwtULbiuZvPR3F19KGqRl6JfpYTce0iNEqe5YwuHKT+GI7cZQ9BT+duo+1O QfQw== 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 v5-20020aa7cd45000000b0052566663542si57798edw.76.2023.09.07.10.40.23; Thu, 07 Sep 2023 10:40:35 -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 S245753AbjIGPaS (ORCPT + 41 others); Thu, 7 Sep 2023 11:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245475AbjIGP3h (ORCPT ); Thu, 7 Sep 2023 11:29:37 -0400 Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [IPv6:2a02:1800:110:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C188BE49 for ; Thu, 7 Sep 2023 08:29:09 -0700 (PDT) Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4RhL540FPjz4x5tb for ; Thu, 7 Sep 2023 15:42:00 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by laurent.telenet-ops.be with bizsmtp id j1hy2A00Y1C8whw011hyts; 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 1qeFGR-002mAf-3H; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGg-00CMih-Be; Thu, 07 Sep 2023 15:41:58 +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 46/52] m68k: sun3: Make print_pte() static Date: Thu, 7 Sep 2023 15:41:47 +0200 Message-Id: <05c9a02a8bb103b8717f4f2d9c36af9267d7a09e.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: 1776401446857067455 X-GMAIL-MSGID: 1776401446857067455 When building with W=1: arch/m68k/sun3/mmu_emu.c:70:6: warning: no previous prototype for ‘print_pte’ [-Wmissing-prototypes] 70 | void print_pte (pte_t pte) | ^~~~~~~~~ Fix this by making print_pte() static. There was never a user outside arch/m68k/sun3/mmu_emu.c. Signed-off-by: Geert Uytterhoeven --- arch/m68k/sun3/mmu_emu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/sun3/mmu_emu.c b/arch/m68k/sun3/mmu_emu.c index 7321b3b76283c7c9..7ec9bbf8a3644a10 100644 --- a/arch/m68k/sun3/mmu_emu.c +++ b/arch/m68k/sun3/mmu_emu.c @@ -67,7 +67,7 @@ static unsigned char ctx_avail = CONTEXTS_NUM-1; unsigned long rom_pages[256]; /* Print a PTE value in symbolic form. For debugging. */ -void print_pte (pte_t pte) +static void print_pte(pte_t pte) { #if 0 /* Verbose version. */ From patchwork Thu Sep 7 13:41:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137662 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp39426vqo; Thu, 7 Sep 2023 10:20:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYNU3rHzdpwdaeNhzLqVjhC0HDW5puyeo97YRp3VRgHDme7wz0YrysgyJnRLin5Nwx/CYX X-Received: by 2002:aa7:88d1:0:b0:68e:2d2d:56c1 with SMTP id k17-20020aa788d1000000b0068e2d2d56c1mr31528pff.9.1694107213819; Thu, 07 Sep 2023 10:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694107213; cv=none; d=google.com; s=arc-20160816; b=NaQYejQQU1ZoR4KVrtr5mq/c5r0nOHFsNi1+UKRVl4YGtMPJyWf8AyU6vja1crjsb/ KVxkHx+4R3rS98CWTTLFpAtDfBqqNu4yZIai02L3Vpx7s1jpX2bBt2UW+YBufKPB5cFv 1KQ9yKKms7F9NeT6VLhzavUOOaRcy5fn2czuNny8obLCJa/bB5LhM1SDYkC0h+Mkp4Sf auN+n2w8JyfuR7ZTmXqLDNNjT2M891c1C/Yew4LfcNUB5ZXBU1e1DPenEN08WpYn58Hc rvQm8AzJmaJ/DaGLXdN689o+lqU2ohUzhxr1zpPN1WO7BF2OuarUfhXd+MbVLhb1x9lu hK6A== 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=09ddmLZLkjpAKzhYUzbfp2UI2dRcqPHTOkIm2/k4kAc=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=AR+1I77R8Ol23R3zbiCyA9gjYc8RaxB74bdWaj1OUfkQSwrF5E+Iwt3xVPRS6umewM 8PDLbvlzqhECSkYzLYjzm/uRD2uZn2FFzqP5soAyTJyUW4aTE+HDFNz6Cxps+JYflmwd y8bk/IJdr8phHVZeGEEMpzo1ifg3OS3eht+WPHmMjwAM3y31oAkK9JyN7syW3UoF5t5w CLGo2uKiJFtM+aguIMnhH5lb179ew4vdMHcH3Aaqq1DlFcG17tGx358pDusfHnoxZL/K BsWmXDLccOadI9f634jtoVMX9ivukomi0rqEGtvG66Fypqc9ehWfRi7y187y0sVZDQjk zh5g== 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 ea21-20020a056a004c1500b0068a5442a99csi13215625pfb.315.2023.09.07.10.20.03; Thu, 07 Sep 2023 10:20:13 -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 S231415AbjIGPgZ (ORCPT + 41 others); Thu, 7 Sep 2023 11:36:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344270AbjIGPcs (ORCPT ); Thu, 7 Sep 2023 11:32:48 -0400 Received: from riemann.telenet-ops.be (riemann.telenet-ops.be [IPv6:2a02:1800:110:4::f00:10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F3AE171C for ; Thu, 7 Sep 2023 08:32:24 -0700 (PDT) Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by riemann.telenet-ops.be (Postfix) with ESMTPS id 4RhL536s87z4x2KG for ; Thu, 7 Sep 2023 15:41:59 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by laurent.telenet-ops.be with bizsmtp id j1hy2A00b1C8whw011hytu; 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 1qeFGR-002mAj-3v; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGg-00CMil-CG; Thu, 07 Sep 2023 15:41:58 +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 47/52] m68k: sun3: Make sun3_platform_init() static Date: Thu, 7 Sep 2023 15:41:48 +0200 Message-Id: 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: 1776400165718625195 X-GMAIL-MSGID: 1776400165718625195 When building with W=1: arch/m68k/sun3/config.c:201:12: warning: no previous prototype for ‘sun3_platform_init’ [-Wmissing-prototypes] 202 | int __init sun3_platform_init(void) | ^~~~~~~~~~~~~~~~~~ Fix this by making sun3_platform_init() static. There was never a user outside arch/m68k/sun3/config.c. Signed-off-by: Geert Uytterhoeven --- arch/m68k/sun3/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/sun3/config.c b/arch/m68k/sun3/config.c index 6e24920e4195490b..40796c3e84400def 100644 --- a/arch/m68k/sun3/config.c +++ b/arch/m68k/sun3/config.c @@ -199,7 +199,7 @@ static const struct resource sun3_scsi_rsrc[] __initconst = { }, }; -int __init sun3_platform_init(void) +static int __init sun3_platform_init(void) { switch (idprom->id_machtype) { case SM_SUN3 | SM_3_160: From patchwork Thu Sep 7 13:41:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137666 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp45873vqo; Thu, 7 Sep 2023 10:32:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFL1esJPQy1xIPD7lwpY5dAxTktPc5ocfdkKVNRZfVvks0SBmvSmr23J8LWNaIMz6BZW4xU X-Received: by 2002:a17:906:254:b0:9a5:a701:2b94 with SMTP id 20-20020a170906025400b009a5a7012b94mr6099ejl.7.1694107929774; Thu, 07 Sep 2023 10:32:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694107929; cv=none; d=google.com; s=arc-20160816; b=1Ad9Frrf3qBLf3qWZz3QLZmK5XSw0SzeWD33LSlIK8V8aXkjZZtEkFTooKSdqH4HnX J30GUS7CQzitAGnbc5jqz/qtnADrpRozYx1qS4QZIkqiHRQX+hINCvDy3xcXLXlYu29o XFaz0iheE6fTy7pGUckfLh4ykpqMlr+tkPLiZB3hPp2epDFNs2QBN9BL+RhSDfuVnAI7 QpEcdSCqmpN+4tBcGzYn2tm4OxbZug7yexOb+wbj6nRfUA0NLSeSdUlM1f4NL8u50LI3 Xw1aFwlSqL94lRZLt3O5BrrPI1CZ3WkCpUuIyIlp3O640beLzBEAeOsAjj1qaH1H4L1R ce5g== 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=7f0mA51EZt7wnBds/65ZDra7Nu7RQH5OHdL8x0WaT30=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=okkAbGfwcZXPIzE5wvZ1ucl2bPlNiz7y4T4ZYU0qwzZkxdJrJq7aD1PA01JYt5D3e3 TKo/zOlFxI/OqiKPpAa3Qp5rZ5Sg1cxB7bsNbmmq4hUAt9alFn6N3DTM1HzXk6s++KqO inEWkPuQSomu1IB7eCGlj2cRCT0DC4Sy1Qtwy8LrpaB2tJmXpuEtNvApvQXJdBsF3kn8 8+wonplXl9X8iWJd1CXTQ1p6vH/U9DH8L21w873yLNbWVjRYL4TXPo9e2fsah1BhSnZm 6RkbvJjp4lYCVt1ORwU5ddNwuP54cYZNgMMJl6kcV7eCkNl28GixVnt7w5vqD5ojSZeN SvTQ== 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 ti4-20020a170907c20400b009920ac37835si10839142ejc.521.2023.09.07.10.31.56; Thu, 07 Sep 2023 10:32:09 -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 S245140AbjIGPcG (ORCPT + 42 others); Thu, 7 Sep 2023 11:32:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245115AbjIGP3P (ORCPT ); Thu, 7 Sep 2023 11:29:15 -0400 Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [IPv6:2a02:1800:110:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8FF31BF5 for ; Thu, 7 Sep 2023 08:28:46 -0700 (PDT) Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4RhL540Zv9z4x6w6 for ; Thu, 7 Sep 2023 15:42:00 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by baptiste.telenet-ops.be with bizsmtp id j1hy2A00g1C8whw011hyXC; Thu, 07 Sep 2023 15:42:00 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qeFGR-002mAp-5O; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGg-00CMiw-Da; Thu, 07 Sep 2023 15:41:58 +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 49/52] m68k: sun3x: Do not mark dvma_map_iommu() inline Date: Thu, 7 Sep 2023 15:41:50 +0200 Message-Id: <086f30b410cd4ae9e5106a30fda3a978e6d88174.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: 1776400916427135280 X-GMAIL-MSGID: 1776400916427135280 dvma_map_iommu() is called from the common Sun3/3x DVMA management code, but never from inside arch/m68k/sun3x/dvma.c. Hence it does not make sense to mark it inline. Signed-off-by: Geert Uytterhoeven --- arch/m68k/sun3x/dvma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/m68k/sun3x/dvma.c b/arch/m68k/sun3x/dvma.c index a6034ba058454642..d1847bfa136791e2 100644 --- a/arch/m68k/sun3x/dvma.c +++ b/arch/m68k/sun3x/dvma.c @@ -143,8 +143,7 @@ inline int dvma_map_cpu(unsigned long kaddr, } -inline int dvma_map_iommu(unsigned long kaddr, unsigned long baddr, - int len) +int dvma_map_iommu(unsigned long kaddr, unsigned long baddr, int len) { unsigned long end, index; From patchwork Thu Sep 7 13:41:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137660 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp38356vqo; Thu, 7 Sep 2023 10:18:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9jtgUlTSrU1Z6oB36Mi/ujM6sUa9cdAuWtJi1I0F3CI7XSdcmfzwVG4tJqI0HgZN/5wJf X-Received: by 2002:a17:902:d48d:b0:1c2:c60:8387 with SMTP id c13-20020a170902d48d00b001c20c608387mr281891plg.0.1694107104514; Thu, 07 Sep 2023 10:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694107104; cv=none; d=google.com; s=arc-20160816; b=uGh6AX/LdbK+cJDF9H3OGNe5TujL2HtGN/KXyinDCqvhYTnpyH7zb45c94JS2kJALa U7ylA8WJ7xyRwYXCdQsAAx3LNH+kMcPMgLrD0ZySdY/YGi79grdDOWdStcjqjgBDP3hS 3zgbQaOxG1WapRieEaAAjMP5Oz+tmHzmKvfOog8uqksyoLMpXcK8Zspa/FOx2EKnGe58 Qf5t1EyGrjmZD6eJcXO//SLsM2HqpXBbWO8lNhkVykDtgNR8bW1msgGr/B8y9i04+Olj s/88Z7wUj+4Hhxn0Hos/C7DKdu7ptaF467RnyzSpjA6hfWglnqbG8PSKS3KPLzcPXId0 TaZQ== 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=RULvPQjvFbqIlxpXrj8xyRGyk3DKPaHlyzu3ypC8wwY=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=F5IAF69iHgU3TaSHhWQZytdB4UavGmXpDN5T6QqUhUnHlZmup4OEC3uD0zp+mXgvJe fFcbIzoiNlcOak3DAYLvqHMQm/o0VF69f5TI+BpPaqYEhXNlOY+wxl0PT2zZwfPaXsgj f5myR2ZyD23mjxl6tBIco5pYmfex/7Oli5ksOARdr0pkNdZY1Bt94GKAXMZRlKl31mGJ ioiOVEd44hiM/czMIN+qB4Obll8jxjkxNZwoAGCUCXO9Y1Vq03khhdY4QNK2wnaqsX/d aCvKb/NoArXAwPiWOIuwp267pDLvvIobvINeveR1FA8/tSHjnj1oX4CZ/EiMmE7iN5lr gW5Q== 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 ij30-20020a170902ab5e00b001c0993e4118si11901plb.553.2023.09.07.10.18.16; Thu, 07 Sep 2023 10:18:24 -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 S236024AbjIGPgS (ORCPT + 45 others); Thu, 7 Sep 2023 11:36:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344271AbjIGPcs (ORCPT ); Thu, 7 Sep 2023 11:32:48 -0400 Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [IPv6:2a02:1800:110:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4582BCDE for ; Thu, 7 Sep 2023 08:32:27 -0700 (PDT) Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4RhL5412djz4x7hX for ; Thu, 7 Sep 2023 15:42:00 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by xavier.telenet-ops.be with bizsmtp id j1hy2A00P1C8whw011hywv; Thu, 07 Sep 2023 15:42:00 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qeFGR-002mAv-67; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGg-00CMj1-EL; Thu, 07 Sep 2023 15:41:58 +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 50/52] m68k: sun3x: Make sun3x_halt() static Date: Thu, 7 Sep 2023 15:41:51 +0200 Message-Id: <1d9bcd8cc98730ba0b9e2cc116e52f5d09d20f6d.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: 1776400051380413547 X-GMAIL-MSGID: 1776400051380413547 When building with W=1: arch/m68k/sun3x/prom.c:33:6: warning: no previous prototype for ‘sun3x_halt’ [-Wmissing-prototypes] 33 | void sun3x_halt(void) | ^~~~~~~~~~ Fix this by making sun3x_halt() static. The function body was moved to arch/m68k/sun3x/prom.c in v2.4.5.2. Signed-off-by: Geert Uytterhoeven --- arch/m68k/sun3x/prom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/sun3x/prom.c b/arch/m68k/sun3x/prom.c index 64c23bfaa90c5ba9..8ac87d3dc60718d9 100644 --- a/arch/m68k/sun3x/prom.c +++ b/arch/m68k/sun3x/prom.c @@ -30,7 +30,7 @@ struct linux_romvec *romvec; e_vector *sun3x_prom_vbr; /* Handle returning to the prom */ -void sun3x_halt(void) +static void sun3x_halt(void) { unsigned long flags; From patchwork Thu Sep 7 13:41:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137663 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp40425vqo; Thu, 7 Sep 2023 10:22:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEsAot7xHZiGZFf/5M0DjUsgx+yLM04FpioTBXIF2v0fXwK4KOyrqIb1S5uXLzcf9DmjS7X X-Received: by 2002:a05:6a20:324a:b0:133:b3a9:90d with SMTP id hm10-20020a056a20324a00b00133b3a9090dmr271163pzc.36.1694107319958; Thu, 07 Sep 2023 10:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694107319; cv=none; d=google.com; s=arc-20160816; b=QS9INjwcK+1fjoVmWjBYGAh+30U+cv+BbpJFQs8LXHyul3XUH4IqUZ1MD1AfUnsev6 +TR9aoghXBUA/ZY2CgB1R770aw4L0vNuFUBN2U7tjLFRtMXCM3jOamfbZOGRO0JaDz/v ABrTRPn0e/aon3vCnNp+fVhIgPhWnP5wLaaGBzNc7xc8n+H6zi7kWCzQRBdltJGYkzU0 1ow/yo6nlnfCC+g8VU5Ugx1HRNPeSYn9UZ9SR6gDK1QuvwtqaO6VlsKyzcb/WNelDdRc O+HP97sCYf8JygdczISoKq8+rVLNkWs/oKc/II+eu+2s1js8i4MPdxKMpgCXINjar+PF smeQ== 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=3CpmNE8fb2oGWRRKeO+oGiiJJ1wirAFZ9H3PMMl/eGc=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=En4XUpUqJ2hslxiWyoyv+7MvJxrga4cPCmtsrJ1tkx21ahYOsV4uFASAEBLfv+orCi AAcyLRivlPAY5W/WXvqjBC6M1zmM/7c49K4+Kobll2G7EECds3SkMwdQswziFsKKphjS ANzk+5vSdp+LKjcojfCYLlvMnT0Z88KCCIC2+3tON63Wy+coyse+7BKEZvDSoFV6vyV2 09Xg4ID77HZOtI3TdXbFGJl5178X7/0+GGyMPaPtjc3m2KpibLHB2LtBninVyWkr0LuU tZnhfYIrAbSeomXpm4dvP5sTNwrjJIYuPr55WVpOXmHH6RcvNCdSy8l5COu9JGeILqUD CNLA== 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 i2-20020a6551c2000000b00565e6e7a80asi13300365pgq.349.2023.09.07.10.21.53; Thu, 07 Sep 2023 10:21:59 -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 S235111AbjIGQmV (ORCPT + 37 others); Thu, 7 Sep 2023 12:42:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241706AbjIGQl4 (ORCPT ); Thu, 7 Sep 2023 12:41:56 -0400 Received: from gauss.telenet-ops.be (gauss.telenet-ops.be [IPv6:2a02:1800:120:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE0594EFC for ; Thu, 7 Sep 2023 09:08:47 -0700 (PDT) Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by gauss.telenet-ops.be (Postfix) with ESMTPS id 4RhL540SRNz4x87p for ; Thu, 7 Sep 2023 15:42:00 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by albert.telenet-ops.be with bizsmtp id j1hy2A00o1C8whw061hyab; 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 1qeFGR-002mB0-6n; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGg-00CMj6-F4; Thu, 07 Sep 2023 15:41:58 +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 51/52] m68k: sun3x: Make dvma_print() static Date: Thu, 7 Sep 2023 15:41:52 +0200 Message-Id: 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=unavailable 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: 1776400276976959972 X-GMAIL-MSGID: 1776400276976959972 There was never a user of dvma_print() outside arch/m68k/sun3x/dvma.c. Signed-off-by: Geert Uytterhoeven --- arch/m68k/sun3x/dvma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/sun3x/dvma.c b/arch/m68k/sun3x/dvma.c index d1847bfa136791e2..5185b4818d408e71 100644 --- a/arch/m68k/sun3x/dvma.c +++ b/arch/m68k/sun3x/dvma.c @@ -60,7 +60,7 @@ static volatile unsigned long *iommu_pte = (unsigned long *)SUN3X_IOMMU; #ifdef DEBUG /* code to print out a dvma mapping for debugging purposes */ -void dvma_print (unsigned long dvma_addr) +static void dvma_print (unsigned long dvma_addr) { unsigned long index; From patchwork Thu Sep 7 13:41:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137658 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp25424vqo; Thu, 7 Sep 2023 09:59:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG71G6aIVkkPx2O7PYf/T7Y1k+1u9C7BDQWYx3KY8QiDdPwqxzB1vkysJ/EXQe+tnf931XU X-Received: by 2002:a05:6a20:a10c:b0:13f:9233:58d with SMTP id q12-20020a056a20a10c00b0013f9233058dmr234797pzk.2.1694105944658; Thu, 07 Sep 2023 09:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694105944; cv=none; d=google.com; s=arc-20160816; b=U99JwDQ3QV+c2WB6FCYDLTSCDNqhfQR7pU5zBRYtZ74QRRLzmGCefvCi5sroAjtPNA UqP3cUZRuRfMLiJTMBmpjbTtKPV1GFmQX60FcWUDjOsB3LU12rRKNQy0efh25WyNii8W yowfCE+likzHubCZHeyB1gaIvwxyM9PGOTAQ48wfn4nhFCbZvQ4cx2eWH2eycCcSNIMl djELG6831zANZEfNocWO1WRXZUxaw58+uQWwHHoj2v+mq9wVHfX75BfTIUZpxst/87/M Iv7t1O9SCMUton6iYoN1MjFVa86lN1YbYRt69RdyqtSSDDEqD7QaB4LD1W135Hhb6xmO +yUA== 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=EnuPAVQs2ZxfezLo1gk86QBF2wtwPZ99yg1fjebw4Vw=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=YkO31aNm72mdFe/YjCUQNRYLPUAGwTxPXcXsllpvP3IGXCaF2PcyKTLzGyq/MRygUL BvHxYRh+qeCzDKZEE4KEsV55FdQbjCNVa5vQLJtNhWs3BzJarpzX+Y9zdnj09I11ieNi nTcJOIivE/eV/CyCNE4TRJgERtC29xd2nWYKePNLiV/uIEhdExQ22k/v7zL944a0/pij jpRRxuRumBmdSIZNbE0ulQsmalxDTE+XNHTIGQ4uDWY0NB2FCclDr/OuNYCdlRENdOwv VFWuVPMcm4/quhcQdt/v+BFqWVZlQDevo8u8QVABfrxdjaXUXZEv4gbuHDNispzm6ISy k7+w== 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 b23-20020a639317000000b00563f8e3fca8si13483192pge.49.2023.09.07.09.58.57; Thu, 07 Sep 2023 09:59:04 -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 S242856AbjIGP3G (ORCPT + 45 others); Thu, 7 Sep 2023 11:29:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244578AbjIGP1x (ORCPT ); Thu, 7 Sep 2023 11:27:53 -0400 Received: from riemann.telenet-ops.be (riemann.telenet-ops.be [IPv6:2a02:1800:110:4::f00:10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2A3910FC for ; Thu, 7 Sep 2023 08:27:28 -0700 (PDT) Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by riemann.telenet-ops.be (Postfix) with ESMTPS id 4RhL540s8fz4x37j for ; Thu, 7 Sep 2023 15:42:00 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by andre.telenet-ops.be with bizsmtp id j1hy2A00b1C8whw011hyGH; Thu, 07 Sep 2023 15:42:00 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qeFGR-002mB2-7Q; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGg-00CMjB-Fk; Thu, 07 Sep 2023 15:41:58 +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 52/52] m68k: sun3/3x: Add and use "sun3.h" Date: Thu, 7 Sep 2023 15:41:53 +0200 Message-Id: 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: 1776398835327551662 X-GMAIL-MSGID: 1776398835327551662 When building with W=1: arch/m68k/sun3/idprom.c:86:6: warning: no previous prototype for ‘sun3_get_model’ [-Wmissing-prototypes] 86 | void sun3_get_model(char *model) | ^~~~~~~~~~~~~~ arch/m68k/sun3/config.c:53:24: warning: no previous prototype for ‘sun3_init’ [-Wmissing-prototypes] 53 | asmlinkage void __init sun3_init(void) | ^~~~~~~~~ arch/m68k/sun3/mmu_emu.c:117:6: warning: no previous prototype for ‘print_pte_vaddr’ [-Wmissing-prototypes] 117 | void print_pte_vaddr (unsigned long vaddr) | ^~~~~~~~~~~~~~~ arch/m68k/sun3/mmu_emu.c:126:13: warning: no previous prototype for ‘mmu_emu_init’ [-Wmissing-prototypes] 126 | void __init mmu_emu_init(unsigned long bootmem_end) | ^~~~~~~~~~~~ arch/m68k/sun3/mmu_emu.c:353:5: warning: no previous prototype for ‘mmu_emu_handle_fault’ [-Wmissing-prototypes] 353 | int mmu_emu_handle_fault (unsigned long vaddr, int read_flag, int kernel_fault) | ^~~~~~~~~~~~~~~~~~~~ arch/m68k/sun3/leds.c:6:6: warning: no previous prototype for ‘sun3_leds’ [-Wmissing-prototypes] 6 | void sun3_leds(unsigned char byte) | ^~~~~~~~~ arch/m68k/sun3/intersil.c:27:5: warning: no previous prototype for ‘sun3_hwclk’ [-Wmissing-prototypes] 27 | int sun3_hwclk(int set, struct rtc_time *t) | ^~~~~~~~~~ arch/m68k/sun3x/config.c:30:6: warning: no previous prototype for ‘sun3_leds’ [-Wmissing-prototypes] 30 | void sun3_leds(unsigned char byte) | ^~~~~~~~~ Fix this by introducing a new header file "sun3.h" for holding the prototypes of functions implemented in arch/m68k/sun3/ and arch/m68k/sun3x/. Signed-off-by: Geert Uytterhoeven --- arch/m68k/kernel/traps.c | 2 +- arch/m68k/mm/sun3kmap.c | 6 ++---- arch/m68k/mm/sun3mmu.c | 2 +- arch/m68k/sun3/config.c | 4 ++-- arch/m68k/sun3/idprom.c | 2 ++ arch/m68k/sun3/intersil.c | 1 + arch/m68k/sun3/leds.c | 2 ++ arch/m68k/sun3/mmu_emu.c | 1 + arch/m68k/sun3/sun3.h | 22 ++++++++++++++++++++++ arch/m68k/sun3/sun3ints.c | 2 +- arch/m68k/sun3x/config.c | 3 +-- 11 files changed, 36 insertions(+), 11 deletions(-) create mode 100644 arch/m68k/sun3/sun3.h diff --git a/arch/m68k/kernel/traps.c b/arch/m68k/kernel/traps.c index 129c89349e1a40aa..8ee773d29954921c 100644 --- a/arch/m68k/kernel/traps.c +++ b/arch/m68k/kernel/traps.c @@ -364,7 +364,7 @@ static inline void access_error040(struct frame *fp) #if defined(CONFIG_SUN3) #include -extern int mmu_emu_handle_fault (unsigned long, int, int); +#include "../sun3/sun3.h" /* sun3 version of bus_error030 */ diff --git a/arch/m68k/mm/sun3kmap.c b/arch/m68k/mm/sun3kmap.c index 4f2a7ef8348bc1a6..ac091892d82f8a06 100644 --- a/arch/m68k/mm/sun3kmap.c +++ b/arch/m68k/mm/sun3kmap.c @@ -18,11 +18,9 @@ #include #include -#undef SUN3_KMAP_DEBUG +#include "../sun3/sun3.h" -#ifdef SUN3_KMAP_DEBUG -extern void print_pte_vaddr(unsigned long vaddr); -#endif +#undef SUN3_KMAP_DEBUG extern void mmu_emu_map_pmeg (int context, int vaddr); diff --git a/arch/m68k/mm/sun3mmu.c b/arch/m68k/mm/sun3mmu.c index c5e6a23e0262128d..494739c1783e4dea 100644 --- a/arch/m68k/mm/sun3mmu.c +++ b/arch/m68k/mm/sun3mmu.c @@ -24,7 +24,7 @@ #include #include -extern void mmu_emu_init (unsigned long bootmem_end); +#include "../sun3/sun3.h" const char bad_pmd_string[] = "Bad pmd in pte_alloc: %08lx\n"; diff --git a/arch/m68k/sun3/config.c b/arch/m68k/sun3/config.c index 40796c3e84400def..cd8af809e0cad1e4 100644 --- a/arch/m68k/sun3/config.c +++ b/arch/m68k/sun3/config.c @@ -35,11 +35,11 @@ #include #include +#include "sun3.h" + char sun3_reserved_pmeg[SUN3_PMEGS_NUM]; static void sun3_sched_init(void); -extern void sun3_get_model (char* model); -extern int sun3_hwclk(int set, struct rtc_time *t); volatile char* clock_va; extern unsigned long availmem; diff --git a/arch/m68k/sun3/idprom.c b/arch/m68k/sun3/idprom.c index 9ffd6515ad74a7fa..ca633a5f5eb1281a 100644 --- a/arch/m68k/sun3/idprom.c +++ b/arch/m68k/sun3/idprom.c @@ -17,6 +17,8 @@ #include #include /* Fun with Sun released architectures. */ +#include "sun3.h" + struct idprom *idprom; EXPORT_SYMBOL(idprom); diff --git a/arch/m68k/sun3/intersil.c b/arch/m68k/sun3/intersil.c index 8fc74864de81962b..29674cfa9bb3aa35 100644 --- a/arch/m68k/sun3/intersil.c +++ b/arch/m68k/sun3/intersil.c @@ -17,6 +17,7 @@ #include #include +#include "sun3.h" /* bits to set for start/run of the intersil */ #define STOP_VAL (INTERSIL_STOP | INTERSIL_INT_ENABLE | INTERSIL_24H_MODE) diff --git a/arch/m68k/sun3/leds.c b/arch/m68k/sun3/leds.c index 7c67b58ebf13fa4a..4bb95318fd548302 100644 --- a/arch/m68k/sun3/leds.c +++ b/arch/m68k/sun3/leds.c @@ -3,6 +3,8 @@ #include #include +#include "sun3.h" + void sun3_leds(unsigned char byte) { unsigned char dfc; diff --git a/arch/m68k/sun3/mmu_emu.c b/arch/m68k/sun3/mmu_emu.c index 7ec9bbf8a3644a10..e5a92da43d1978df 100644 --- a/arch/m68k/sun3/mmu_emu.c +++ b/arch/m68k/sun3/mmu_emu.c @@ -27,6 +27,7 @@ #include #include +#include "sun3.h" #undef DEBUG_MMU_EMU #define DEBUG_PROM_MAPS diff --git a/arch/m68k/sun3/sun3.h b/arch/m68k/sun3/sun3.h new file mode 100644 index 0000000000000000..8d98c0aaedc0c686 --- /dev/null +++ b/arch/m68k/sun3/sun3.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#include + +struct rtc_time; + +/* config.c */ +asmlinkage void sun3_init(void); + +/* idprom.c */ +void sun3_get_model(char *model); + +/* intersil.c */ +int sun3_hwclk(int set, struct rtc_time *t); + +/* leds.c */ +void sun3_leds(unsigned char byte); + +/* mmu_emu.c */ +void mmu_emu_init(unsigned long bootmem_end); +int mmu_emu_handle_fault(unsigned long vaddr, int read_flag, int kernel_fault); +void print_pte_vaddr(unsigned long vaddr); diff --git a/arch/m68k/sun3/sun3ints.c b/arch/m68k/sun3/sun3ints.c index 36cc280a4505f5d2..781e7c0a6f523a2b 100644 --- a/arch/m68k/sun3/sun3ints.c +++ b/arch/m68k/sun3/sun3ints.c @@ -17,7 +17,7 @@ #include #include -extern void sun3_leds (unsigned char); +#include "sun3.h" void sun3_disable_interrupts(void) { diff --git a/arch/m68k/sun3x/config.c b/arch/m68k/sun3x/config.c index e2a5d84df6d214d1..798ea72a0ea3c3e2 100644 --- a/arch/m68k/sun3x/config.c +++ b/arch/m68k/sun3x/config.c @@ -22,11 +22,10 @@ #include #include "time.h" +#include "../sun3/sun3.h" volatile char *clock_va; -extern void sun3_get_model(char *model); - void sun3_leds(unsigned char byte) {