From patchwork Wed Sep 13 14:08: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: 138821 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp1118706vqx; Wed, 13 Sep 2023 07:17:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5nejpr/anzZsHPu4M+aO1n6UHH+2s8t0eqquHhNDGFVVOB7XYmJYN6EPtusVRfuLoMWRv X-Received: by 2002:a05:6a00:4686:b0:690:15c7:60c0 with SMTP id de6-20020a056a00468600b0069015c760c0mr1055269pfb.19.1694614656046; Wed, 13 Sep 2023 07:17:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694614656; cv=none; d=google.com; s=arc-20160816; b=oqdKC/Wq2f0D0XtPFY/pyMvjMBd1ClmR0D2omI/5oUdRzGgJCa3InUubwqQq8Td9yG /x7/7y628xLlc9T+rTFUZ6zMKA/inFf82GaLIBILFePm21stL75U6ZF9YfsXvYSuhEWH xMxLGK1fTrq5AO3WbDVqoTQOHIpRELrrGZVnsQ7cJuoLkvzL7BdtI/1unUp7XVBGH6ej 5TUlRNVyoB5b2Z23QWVfxv/Oi0NcOqwRA2HU36+gpSiSVbHgj7Wi7fvockh96bg9UBQz lDrbuWUOE9CyvpfuIuIoayQh3f368Kv6Ksdm/RVxpHh4tptrn+P/OSEZ5E8YxmnKB4Q0 sO5w== 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=y4QfSzINv5P6lMiL8JHkNHhvU8s8wzzxdKYF74bL7gk=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=Hz0P4gudYcwBYHmdE+vAtJ65aq3vmNEZwZ4babwYF36SlvPLmH4LZSalDZJ9+6umEz K947s2BJoMZbLeK+k7t9xZHN6oHBnJ2eZWcgc9UVn7Mey/F9LXgmwOghx7EyII1ouvyp PXvqHHxqS8d3mUcFvVyEAZ5KA1rfd8Dx+NsXhadb9EFRyEpl5J8inLZV0+fITXDxjHGJ DT9a849UVr8nzbPn2LpCd0rTbmRmOWhQ5NTb7/atViyZl8+7+ippi+CHyxCdbCcSWaAp d+8gdlGiogdSHr+q2teJKZ8hG3Vufnk0zhpWrNpKeMt6l+ZWLEC15wxayfYev8Z9AgfM 1BHw== 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:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id ea16-20020a056a004c1000b0068a54e524d9si10106834pfb.150.2023.09.13.07.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:17:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 1DD1C80B908A; Wed, 13 Sep 2023 07:11:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241656AbjIMOKj (ORCPT + 36 others); Wed, 13 Sep 2023 10:10:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241320AbjIMOJl (ORCPT ); Wed, 13 Sep 2023 10:09:41 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34B141FE6 for ; Wed, 13 Sep 2023 07:08:53 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:f674:9611:cd05:f25a]) by michel.telenet-ops.be with bizsmtp id lS8p2A00V3fvA4V06S8qJY; Wed, 13 Sep 2023 16:08:51 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qgQXd-003csE-NQ; Wed, 13 Sep 2023 16:08:47 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qgQXv-00FV4w-2W; 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 20/52] m68k: atari: Make atari_platform_init() static Date: Wed, 13 Sep 2023 16:08:10 +0200 Message-Id: <417b46ec1945212c0b1fcc8b0f4074bae9a8b0b4.1694613528.git.geert@linux-m68k.org> 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 (morse.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 morse.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776932257635198262 X-GMAIL-MSGID: 1776932257635198262 When building with W=1: arch/m68k/atari/config.c:883:12: warning: no previous prototype for ‘atari_platform_init’ [-Wmissing-prototypes] 883 | int __init atari_platform_init(void) | ^~~~~~~~~~~~~~~~~~~ Fix this by making atari_platform_init() static. There was never a user outside arch/m68k/atari/config.c. Signed-off-by: Geert Uytterhoeven Acked-by: Arnd Bergmann --- v2: - Add Acked-by. --- arch/m68k/atari/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/atari/config.c b/arch/m68k/atari/config.c index 38a7c05781059840..b4fe4273ad912ebe 100644 --- a/arch/m68k/atari/config.c +++ b/arch/m68k/atari/config.c @@ -880,7 +880,7 @@ static const struct resource atari_falconide_rsrc[] __initconst = { DEFINE_RES_MEM(FALCON_IDE_BASE + 0x38, 2), }; -int __init atari_platform_init(void) +static int __init atari_platform_init(void) { struct platform_device *pdev; int rv = 0;