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: