Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp242316rdh; Thu, 23 Nov 2023 02:48:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvXC5l6LZu7mB7BXc1hKCWXnkBWAOMUyf4Nt/eBNLC9/j3+iuIs/zWnNWbh9D5hpjBlkOa X-Received: by 2002:a17:902:f7c6:b0:1cf:5d08:18f with SMTP id h6-20020a170902f7c600b001cf5d08018fmr4678968plw.31.1700736527210; Thu, 23 Nov 2023 02:48:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700736527; cv=none; d=google.com; s=arc-20160816; b=Sg4ni0oi4wui3qlQ/BiroZoGVx5S2Ix0yi24w212tTT5NhEFEPisdK9F0FnrsXANl/ VEbravVWWikmtRjb//RDARTZ9pNv//5Rvep3HJjX5P2e51IXi2iEykDz73MnjetrdII9 sf0wid2FBhq7l0/kNQGuOWyXxvBTai6LbLrxCmF147cfMN+lCCGuJfELHCzA8v3hiULA biiKRZaJVmd1tYrPzIrkgJHJCgrNqiiMq2pCCXb7iUCJtRhzkVD1Ofp6zxNYUqLw8M3a 0Zofj3NUrVWThDAYMx5JEIq0HCzPp6EyAAJ429/sEzme9YWaWfQRiYbUhOa2sHs2d4eH n9gg== 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=Qo3D7s42GVK4s1uJPPwT10kRMvk6H0nQqpAKMFtYoq0=; fh=iogb7Qd7AqyHlpSVxJDWK37b53wM5j9GlZ66B7PI+LI=; b=bEgFtIZ7LsNxoGjXB5Wzq0ajw3n4qONVKYFuRSDxWh59rJ1uBwABWBAhNDW4nqCjLX cLIE9BgIp0uuX7R3Fa2J1GnQ1L8gEW9wBlhzubyz6gZLOQkDSQnaWGDopDkxEZRP50T9 ow0S/dW6RjlOV6bfVT3QMtlzWJzUMQta1iJnSL5vaMLe4JGCnwdJBUz+eeQ2xmfg7SlQ O4zBDefw7NlhEWUaZLPMRHd/gnP9ETEKxTB6xtl3C+JFxsokutsIN/5ELqbvegSrXzuR cheE9fr7y2wbGqdvgnNWkJrUkPDgUlgk4e5iFXBDLkPtK5iy8F+BdSGbA/nLDYzPjuSB QqWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jb28IYZu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id h14-20020a170902f7ce00b001cc4807a1b3si889283plw.100.2023.11.23.02.48.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 02:48:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jb28IYZu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id F37098075DFF; Thu, 23 Nov 2023 02:48:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344831AbjKWKsN (ORCPT + 99 others); Thu, 23 Nov 2023 05:48:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344808AbjKWKsL (ORCPT ); Thu, 23 Nov 2023 05:48:11 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B86D1BE for ; Thu, 23 Nov 2023 02:48:17 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65959C433C9; Thu, 23 Nov 2023 10:48:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700736496; bh=XewRPhT99Y03FufuA1LV3jWgAM7RX4SOby0kMRaZJ00=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jb28IYZuVzwcLrvrvdnukKAYmz06zPlRup1+ZlrHUkGDRNnKhK/LnDE6VdgbLpj+m 7nGH2w6Z1wEvV1o01yirEafTzIchxEfH4n2wh7+t8IoMcGHOFAP/SKIzyt37JchohU ib2t6BeZZQ86+vnPtZ+l1dn7dxrBqkZmLsRPiASWYcgVIFUmk5vGvqSqP1M1fKyprv WtPDeYK0T522Y3EVQc2uUKBE+AX0HUsdGJvTOEm3AvSFnWESX7NOSJgufEHOEpjU/O JVbzAaHZKimJUay/NoPr4L/SKxigHhRfZtozFHHOguviIMwsJd6aOJ0UukOcKdgPZy H1T4gcKWtWZTQ== From: Arnd Bergmann To: Michael Ellerman Cc: Arnd Bergmann , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] powerpc: pasemi: mark pas_shutdown() static Date: Thu, 23 Nov 2023 11:48:00 +0100 Message-Id: <20231123104801.15537-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231123104801.15537-1-arnd@kernel.org> References: <20231123104801.15537-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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]); Thu, 23 Nov 2023 02:48:39 -0800 (PST) From: Arnd Bergmann Allmodconfig builds show a warning about one function that is accidentally marked global: arch/powerpc/platforms/pasemi/setup.c:67:6: error: no previous prototype for 'pas_shutdown' [-Werror=missing-prototypes] Fixes: 656fdf3ad8e0 ("powerpc/pasemi: Add Nemo board device init code.") Signed-off-by: Arnd Bergmann --- arch/powerpc/platforms/pasemi/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pasemi/setup.c b/arch/powerpc/platforms/pasemi/setup.c index ef985ba2bf21..0761d98e5be3 100644 --- a/arch/powerpc/platforms/pasemi/setup.c +++ b/arch/powerpc/platforms/pasemi/setup.c @@ -64,7 +64,7 @@ static void __noreturn pas_restart(char *cmd) } #ifdef CONFIG_PPC_PASEMI_NEMO -void pas_shutdown(void) +static void pas_shutdown(void) { /* Set the PLD bit that makes the SB600 think the power button is being pressed */ void __iomem *pld_map = ioremap(0xf5000000,4096); -- 2.39.2