Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2551175rwd; Fri, 19 May 2023 07:13:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7cmYYLsk9L0Y5m390CTTaAoyO8/Wf8YWU5R+XTwKU36WrryRiZxn77FxDkXnqdqZ4xoF6j X-Received: by 2002:a17:90a:dd8a:b0:253:375f:8123 with SMTP id l10-20020a17090add8a00b00253375f8123mr2188598pjv.16.1684505622810; Fri, 19 May 2023 07:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684505622; cv=none; d=google.com; s=arc-20160816; b=NHF+9TgqM6acog8xCBpMSb6NbQ4Bh7npNpjIsX+CgmBcAGiWoPUnrinNrHNtxBL+RK 2E/XALhD103PgEwcwhfgpe647OVKKUo53UGez0+1UV4B+8zw9X/PH1asz04HW/GV5PCC 49GafQVcAy4beSUI9CGzBqdn6316Ps0PiFqSHZYn2tbSMgLH/0i8zDghBqGohHfPsWiT 3J0ubtWTybxlFYsQGXkU0ysG1vEg+MlBFwj4V+AxZDyeFiPUWbNU2QCmph8ezAV5iPtN MMpAa6R3hhweazb92Fz4HJgwZyMeFGxMvXTKFfr+Z0JYoln4yXy1ul5dRqCifSrr2I4H XrcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FE0NSUmJrKJiAY57evQg85k+NAKO+MPPQgWIVXd9z9U=; b=x2XOFvOt1YaZaNmCbD0HFpZR/54ocaQhDl00SckRR5g2/S67kIDf0tvqDEjArzGUpD QHQc5TcnVUoe3pVxGmlEKk5ne4XzUzLLzdOfG6oGjQss89HZYXDAl5UDVlcxbNHMIqGJ XlIGymzXrRiE7wVIjYdEOKOc0YQQ3NI2hjURmvngNZE0UiQvh40l0O2Jm8mv7Xcmlj7e w2Gef7axUv0Sb3ufd4Le/IyBICCusvJlH/e9PQyRxz/lHN1y7zfvcIZ534cDXJSIPN0r K7uUgwTPJaW183GLZ4gOA2iUXOw4Bu7vwvFvKsFIWCZJVGDXC1uIQcKZkSgsBNWNypN1 Ih2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=qjBn+JjT; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ha8-20020a17090af3c800b0024e35ef410fsi1730701pjb.131.2023.05.19.07.13.27; Fri, 19 May 2023 07:13:42 -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=@microchip.com header.s=mchp header.b=qjBn+JjT; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231892AbjESNzD (ORCPT + 99 others); Fri, 19 May 2023 09:55:03 -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> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 --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--