From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C8C8C77B75 for ; Fri, 19 May 2023 13:55:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231948AbjESNzF (ORCPT ); Fri, 19 May 2023 09:55:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232030AbjESNzB (ORCPT ); Fri, 19 May 2023 09:55:01 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F077712C for ; Fri, 19 May 2023 06:54:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1684504500; x=1716040500; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SFnwP/vyGrDIlPPr2daJemFKu+u/gI6MTNacrNW4jKs=; b=qjBn+JjTG7s7c0LCkvjM0ZuMJN880ck63NrelokQWg78yORayFrWfLfq zUxX1LUQvetJpOVt+RFWlqqOY+Yvmx6NMR+qivNnQSW7q3aLbtHarVRf9 pOXkaBFxo3o7/CBhU8xPj/+pQ7MBc1eB4ymX0ixfPrduG140hdJkro9XY VprACmflGTZyrCtnoeZeyhHTYqKgdym2jdf7aeE31b9WVn2j32hx9sX4z WhNMj0m8FsgtPZv2YygqIkdRcShiFgae9a3lTndarDBxzJnT9JVCkqS6u lEF5p9IQMho/qT2dMFmuoPel51byM8HTtzNXJxOO+/Q1ayUyi8pR4sqIx w==; X-IronPort-AV: E=Sophos;i="6.00,176,1681196400"; d="asc'?scan'208";a="152970577" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 May 2023 06:54:56 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 19 May 2023 06:54:54 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Fri, 19 May 2023 06:54:53 -0700 Date: Fri, 19 May 2023 14:54:32 +0100 From: Conor Dooley To: Alexandre Ghiti CC: Paul Walmsley , Palmer Dabbelt , Albert Ou , , Subject: Re: [PATCH -fixes] riscv: Fix unused variable warning when BUILTIN_DTB is set Message-ID: <20230519-backhand-overbid-1df4d90f7da8@wendy> References: <20230519131311.391960-1-alexghiti@rivosinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aPJ+XWcPL1J5bSvX" Content-Disposition: inline In-Reply-To: <20230519131311.391960-1-alexghiti@rivosinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --aPJ+XWcPL1J5bSvX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 19, 2023 at 03:13:11PM +0200, Alexandre Ghiti wrote: > commit ef69d2559fe9 ("riscv: Move early dtb mapping into the fixmap > region") wrongly moved the #ifndef CONFIG_BUILTIN_DTB surrounding the pa > variable definition in create_fdt_early_page_table(), so move it back to > its right place to quiet the following warning: >=20 > ../arch/riscv/mm/init.c: In function =E2=80=98create_fdt_early_page_table= =E2=80=99: > ../arch/riscv/mm/init.c:925:12: warning: unused variable =E2=80=98pa=E2= =80=99 [-Wunused-variable] > 925 | uintptr_t pa =3D dtb_pa & ~(PMD_SIZE - 1); >=20 > Fixes: ef69d2559fe9 ("riscv: Move early dtb mapping into the fixmap regio= n") > Signed-off-by: Alexandre Ghiti Reviewed-by: Conor Dooley Thanks Alex. --aPJ+XWcPL1J5bSvX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZGd/mAAKCRB4tDGHoIJi 0h2IAPwLAxCJ/+0IRNhP4m6vQWaDwze4VcB5EC2wibqTlCYvYwEAyzyVVdDhAhwW JYlxPuibr/SjwKVsvC8sLseZIFPboAA= =WuyF -----END PGP SIGNATURE----- --aPJ+XWcPL1J5bSvX--