From patchwork Wed Sep 13 14:08: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: 138839 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp1120849vqx; Wed, 13 Sep 2023 07:20:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2Paht+dC1kvuVqC4rETrlmsKOjZbE2i3T86bfDM4Vc3QRD5N6jp9cpet83ENUk9DxpQUX X-Received: by 2002:a17:902:ec8b:b0:1b8:1b79:a78c with SMTP id x11-20020a170902ec8b00b001b81b79a78cmr2695167plg.44.1694614837427; Wed, 13 Sep 2023 07:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694614837; cv=none; d=google.com; s=arc-20160816; b=ascWr+i87lyClvjVks6QEMl6SDZ4MgmbAgsyCywuOtYzPg+zYr1GR1OVz/OvowPCTf eHjLtu5aeDXY6L1QFnyyfoRZCVg5jRnjBLTeA/XriR2/KiFgWWnu4oTix9y8yvgcOnsV DshOVGCugGKlj3SrZyeK9fogEEC5OSsXa2kEOfWFvXGLaDe0Sh9WLZuwn3bW6519TMBJ h5BZ6ZFzCILJoGPn0ijksy1OP73U/NTfSOLJlbEdvtAQyIW7bPxzp3lAUZnAseCWPXvK RX885JUj5vRrhhY7MKfP+nT/pl4JoRLlkidmNApDRl9DMIPYrzfH7j98yrKSOAuQbkiB YwEQ== 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=5WYdqYwdyIYcIoAilq1L8mmgiB1ICW5Qu9iJswJHOkk=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=RX/MsY3E2D8fqO/Dr7hz8nDyEtSFoq1KvbU2Rjhuzsuq6CfSA7DQW8OXN6CWs4S9sv +G/grO2QfaBVi5C2cVGNbVk5TUZ52DEmKOrGVAW01juMlyW44UqXdXUnXBs7sczdeWqC UelTLqsLZlBgdYDkWF0tR7yF00u/y7yPL3ZtRczOOe0zfBUsYQhwEH5ODPEiKEMcppGR x6Gs939hIXBM+Xf7cgUlqE2Z+FQRQyUVPGXtmA9F13UpJjYjPzp8XwZ2R/ymnXyb0aNb iXioVhPRTMx6/xYwQrmGmtM8Gz9qDCUyjyuzxD9JWix2UUeFaYKzcrQmW4cA9biY6bHc M8Ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id x10-20020a170902ec8a00b001b9e82a6beesi10279718plg.548.2023.09.13.07.20.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:20:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 211B68087267; Wed, 13 Sep 2023 07:11:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241720AbjIMOLC (ORCPT + 36 others); Wed, 13 Sep 2023 10:11:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241505AbjIMOKD (ORCPT ); Wed, 13 Sep 2023 10:10:03 -0400 Received: from cantor.telenet-ops.be (cantor.telenet-ops.be [195.130.132.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE5F52123 for ; Wed, 13 Sep 2023 07:08:54 -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 4Rm2PG4Tz4z4x7bC for ; Wed, 13 Sep 2023 16:08:50 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:f674:9611:cd05:f25a]) by albert.telenet-ops.be with bizsmtp id lS8p2A00z3fvA4V06S8p5R; Wed, 13 Sep 2023 16:08:50 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qgQXe-003ctx-Ja; Wed, 13 Sep 2023 16:08:48 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qgQXv-00FV79-Uq; Wed, 13 Sep 2023 16:08:47 +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 v2 47/52] m68k: sun3: Make sun3_platform_init() static Date: Wed, 13 Sep 2023 16:08:37 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:11:20 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776932447751701458 X-GMAIL-MSGID: 1776932447751701458 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 Acked-by: Arnd Bergmann --- v2: - Add Acked-by. --- 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: