From patchwork Wed Sep 13 14:08:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 138856 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp1124313vqx; Wed, 13 Sep 2023 07:26:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEAv5dPrVD1pfAXX+nbeMCXnUrC7LnHw7yqW7blP4SUCZCSJ6TZ7BHK3KJWxG7ISnNxAfca X-Received: by 2002:a17:903:452:b0:1c0:deb4:9cd1 with SMTP id iw18-20020a170903045200b001c0deb49cd1mr2652311plb.15.1694615165874; Wed, 13 Sep 2023 07:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694615165; cv=none; d=google.com; s=arc-20160816; b=WJfQ7B49Ap5q44o7gf+KDhvKIv2xp58vKOR8/+/RQ9vqEK7XJgMrxC2VLVlk/vkUTL PSZOnixN+i4AKyvY+ET+zEHYw9Zo2RX/3/xlqI9xQnbZZ0KYCL9qIBc8rUEpn+P1fB8G QupsxMsnuJah/s3JoIQGD/lpQrbUjy7CiqVeZifNjET+wNK5V45vwfDd7c12s0Y8tY7n ued4jSlZbCs4NKSrdnDdNVivhsQzbRam5yksu3VqeIQkC9CyguHGs5k2UiUynqASKVQ5 SbVKkHukgOU3I720IWIpNLqL7aMo0gWyuSLYTzvAn51TaRpEGHF+V1cfKu3K71li1B3d 6kDw== 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=EW7KoO+AUIS5rdCLMdm/ztI5SS67bJlzYnVPxksPMvw=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=Y4T/3uduIS9pIokaqi2OAgswocZ09h47EFKs9YEt+TYLGmAJOeqhgWqub7kYqZvUnW kqTlSzalec6j/QtTipTGaxqidgETESUI46088bpZcA+shpi4DZFL0Vdt0cJZAdLG6hMF nHSf+8UdqSH418k/iPIozUE/DaZIihjWYV8GXKW8NKdZ2Gc+gjjKHDthqGnOaY4KAr+o 7U/L+jnDseUXOqs2rD2y0E1f2J+4XoUCEbymxoKaIG+ujY7PK+cBNzJIoARj+yLJKmMM EuORrZEjJFn2mGHfQZ9lItD3z2xfBuVrNxcT5+aYajHy7XjFeEm4i8h8MK+cC5HVt/bW 8dDQ== 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:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id u15-20020a170903124f00b001beeb49d890si10764272plh.185.2023.09.13.07.26.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:26:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 6F4178131C06; Wed, 13 Sep 2023 07:10:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241475AbjIMOJz (ORCPT + 36 others); Wed, 13 Sep 2023 10:09:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241329AbjIMOJN (ORCPT ); Wed, 13 Sep 2023 10:09:13 -0400 Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [195.130.137.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B812E1BEC for ; Wed, 13 Sep 2023 07:08:51 -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 4Rm2PG1RzXz4xHCT for ; Wed, 13 Sep 2023 16:08:50 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by xavier.telenet-ops.be with bizsmtp id lS8o2A01E1C8whw01S8o3e; 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-003csu-2Q; Wed, 13 Sep 2023 16:08:47 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qgQXv-00FV5o-D3; 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 31/52] m68k: mac: Make mac_platform_init() static Date: Wed, 13 Sep 2023 16:08:21 +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 (pete.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:10:50 -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 pete.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776932791878050673 X-GMAIL-MSGID: 1776932791878050673 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 Acked-by: Arnd Bergmann --- v2: - Add Acked-by. --- 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;