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;