Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1222280rwl; Thu, 10 Aug 2023 08:07:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGt0kaXCV+mKwIkyc0geOIoekBuuXuDsNEDXIvn/kBZEcgOgz80er60GcQDNtADDPDFNcXD X-Received: by 2002:a17:903:1104:b0:1b6:6c32:59a8 with SMTP id n4-20020a170903110400b001b66c3259a8mr3021645plh.36.1691680045839; Thu, 10 Aug 2023 08:07:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691680045; cv=none; d=google.com; s=arc-20160816; b=xGWC15AHLINOM98fkBESRDVexNzPyxCke7JbhdoHi2pQAHkHMxhUvt5rtAbJzo4xTG yF1uLS9ZftCsEc4RQ68yE27YItyxpnbYAiAdO0CM4RFfjvlALyN1pr5ZHK/RbHgJexvN rIeyjXNfYOY+vnku9H9HUemOmioovg8TZeEC1CFDIc2vqxeJIc6oZw24c82TFYfYlR0I ANhV8Y0xVuS2RdekEsF8ZLl2rtlPij+88EhKed9+05cX9EKTIWRTq3dTsfT1+3TMeeN+ 3EpUva6NNFkSGAPSoLgxzKGu3kt1jHxtJS0g8dWKbDrhlGv1LExo2YjRff34PkvSohhU qehQ== 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 :dkim-signature; bh=XU/qyfj+2HNRaI63IzMqz5mGSY9LfCm870coQzHR5g0=; fh=I1DSaFt9yJu0ENHhZiJPqaVC2ZzcADXmWp6D7xBRUvo=; b=PiLQBGPgfzT9W4ZFF443kVzKU4YJHgm4LEPU2mIVjgRabH8Fq20XdjaYISOSPrfMTb saToYmXUn4rHI08uU6lAmVBuxAY8ncQz9keB7+lIaDQEDrvX9gAjUeF5Jhu/YZfqasSI WRYVoBUFr5HXfSdAFlY1J79uFlp87+yhk/zO+Q6OQLJbrlXMdlB+e5PlXhB07iGSolWv /mb0MOmY8PYhHS21rZm7pSDYHTLc6kPppruf+VGgw2030xVyIEsi9BXwOpDUpMujedFD U8zlYhH5j7qvddjMMhhLb8bZrEBhjPWKp2gB/YGWWUlhHNWnO0YFMY395OFPyTLWfbkT lDPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cqgKhGl2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a170902db0900b001b9d1813011si1671288plx.455.2023.08.10.08.07.09; Thu, 10 Aug 2023 08:07:25 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cqgKhGl2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235621AbjHJOWE (ORCPT + 99 others); Thu, 10 Aug 2023 10:22:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235635AbjHJOV6 (ORCPT ); Thu, 10 Aug 2023 10:21:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2A9A26A9 for ; Thu, 10 Aug 2023 07:21:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 56C4365D8A for ; Thu, 10 Aug 2023 14:21:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABD33C433C7; Thu, 10 Aug 2023 14:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677315; bh=NTZhJvX8Fa33MdPPJUJFrTri4+p2YZpKQVbTmgUMKFY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cqgKhGl2DoUwkrH27k0CfFHk4cjsMWCn+krIYRRadLbq/26dDO7M63XU2OA6RddWv dgIEDaGkr6CDt72ElTPqXoJmXpAzgguxwGmQcd5u+eXPiPrL0cRnTikIRskZp2XvBc qTC7ATNWHQdPUOVM8mxtsTB9A0G5Fan2dsnq1Ka109cwdlI1qNdKtZupKFKxnIX2Jb /ig+h6oo/9A1LKlxYouXUcTmsuAYmoLl/W1cxZBwBiWDSBWEqEYazRTK3Pp+zOHoi+ UPC4NKD8NVlpxXQu/Ksklwbi1HCt/mESFyGS970fgg4jU7F3MYgbxidp3qiaT43kji WgekgZXFjYdeA== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org Cc: Arnd Bergmann , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 06/17] macintosh/ams: mark ams_init() static Date: Thu, 10 Aug 2023 16:19:24 +0200 Message-Id: <20230810141947.1236730-7-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 From: Arnd Bergmann This is the module init function, which by definition is used only locally, so mark it static to avoid a warning: drivers/macintosh/ams/ams-core.c:179:12: error: no previous prototype for 'ams_init' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- drivers/macintosh/ams/ams-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/macintosh/ams/ams-core.c b/drivers/macintosh/ams/ams-core.c index 877e8cb231283..c978b4272daa5 100644 --- a/drivers/macintosh/ams/ams-core.c +++ b/drivers/macintosh/ams/ams-core.c @@ -176,7 +176,7 @@ int ams_sensor_attach(void) return result; } -int __init ams_init(void) +static int __init ams_init(void) { struct device_node *np; -- 2.39.2