Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2096509rwb; Wed, 30 Nov 2022 02:12:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ssga7Zz6ez44OjcFrV7OJ3zD3JfKBh69sUdU6m4i8B+cLDIFx/+C/3XLmQc8fA8ciwS1z X-Received: by 2002:a17:907:cb83:b0:7ad:f43a:cb0a with SMTP id un3-20020a170907cb8300b007adf43acb0amr37260451ejc.560.1669803142522; Wed, 30 Nov 2022 02:12:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669803142; cv=none; d=google.com; s=arc-20160816; b=io5Uxdv2YM+dZxeFzqe2Ij+dD9nEy4bDAusF9R6W1ALNQS7EX+sbj0Pk7ofcBAWGQ5 o7PwSSSgINXVEnYbE+x4Mtejm+iYO1OJVLcqyLIpSekYdmG+E2EHOcRsEjVwsyCYNmOe ArDvTk3DrOZasy4o5WfC5f4qzglyK40JBZ+aU2TEs1NKdeeoAkWM+pRWQvht9FLF5SXR O1yDJ7etcsIeF5VSV2XHdzxGjQEBkK9fZwgjf7ozZ9RHnAniFxZGtB3v4DzLQUw4R8Dw RIuEY4n+JBdihKuL8hMi6T2L9lrARUNBm3w2E3cLW/baaPMkw1iNtvASW4KhrCLp0u2w mDgQ== 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:date :message-id:subject:references:in-reply-to:to:from; bh=XAALa3e82K1NZe1xfMGXYm6bZrquPvhSCQpgaIvt2wk=; b=nIf76ete8OuzuwTwDzorUeEBF3bDhReXBt9jx9Qfl8fu+0gh4gkGrD0us2SoMYlqT8 MNau0pIXZYwQyBEfVYQygA+gQa5g797VxG4VZULtlPHq5nFwT1y9EADnDR0Vp2GdYb4u 8ckKNVbDydnCu2EA2sFPPNIEj+lFjfis93UVEJpNrQ3Uuy8rile+GUxOfIzzL4MPT8t0 ZOPIphOtub7iCbEla87DvAIOlCPnPFTH7rGkK1GBvndyfjQCqMPRpUu6IBdMTeF1+G9l Xiiqo5DneXNN7Kt1JfGsifacdFlZUUynONA6Smjqn9k+KUbRajFKkwdn+qMCjY4ovhFZ 28Ig== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cb21-20020a0564020b7500b004672f952b7asi962387edb.203.2022.11.30.02.12.01; Wed, 30 Nov 2022 02:12:22 -0800 (PST) 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 S234100AbiK3Jbv (ORCPT + 84 others); Wed, 30 Nov 2022 04:31:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233763AbiK3Jb2 (ORCPT ); Wed, 30 Nov 2022 04:31:28 -0500 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F354C51C23 for ; Wed, 30 Nov 2022 01:31:27 -0800 (PST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4NMYqd3FGjz4xND; Wed, 30 Nov 2022 20:31:25 +1100 (AEDT) From: Michael Ellerman To: Chen Lifu , npiggin@gmail.com, linux-kernel@vger.kernel.org, zhengzucheng@huawei.com, christophe.leroy@csgroup.eu, nick.child@ibm.com, benh@kernel.crashing.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org In-Reply-To: <20221103070122.340773-1-chenlifu@huawei.com> References: <20221103070122.340773-1-chenlifu@huawei.com> Subject: Re: [PATCH v3 -next] powerpc/powermac: Fix symbol not declared warnings Message-Id: <166980025492.3017288.18013184822257737231.b4-ty@ellerman.id.au> Date: Wed, 30 Nov 2022 20:24:14 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 On Thu, 3 Nov 2022 15:01:22 +0800, Chen Lifu wrote: > 1. ppc_override_l2cr and ppc_override_l2cr_value are only used in > l2cr_init() function, remove them and used *l2cr directly. > 2. has_l2cache is not used outside of the file, so mark it static and > do not initialise statics to 0. > > Fixes the following warning: > > [...] Applied to powerpc/next. [1/1] powerpc/powermac: Fix symbol not declared warnings https://git.kernel.org/powerpc/c/59dc2d94bc12dac53a5d2368ad97ca24e7cc5682 cheers