Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2202811iof; Tue, 7 Jun 2022 23:05:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcwslasMYYYeBc53U1vu2kQsp8a3aDWxDaA3jq1AUNBEvVCg1q4ZaDAFKJgzYLBlDk3mI/ X-Received: by 2002:a63:e315:0:b0:3fa:8780:9a1b with SMTP id f21-20020a63e315000000b003fa87809a1bmr28494016pgh.306.1654668336156; Tue, 07 Jun 2022 23:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654668336; cv=none; d=google.com; s=arc-20160816; b=kAxxNRAMNFMV0uJn23PzJP6tW2B0Y/vwRdzJnxXB3mVRBTe1cnHgSFzImK9uO2MzF4 Ex5QyRpx2UG1I1247eCtDzEiG+JEGiGDsEiRY93gpk8l5VJ+oiQ5rrl+lP2Yp8j4fQm8 vrUbnVpv/ES0RfIwXIaCs6xjFOnh6L/YC/tNeTIvARuJjKDWIyRd8rTQEYIc093CZ37y R/ZIDmjD27PFHMyyvN4wDYtcShs5O/mFFDDQ1pKg+dsCpv//dw+yCCE10SdFDt6o6uzB Mtxbq6ap/5F+h6I67Tiv8t7ltxfUCBD25UPDnWjEPAfr7rUDEstjYjI/IS76rTH5TMiI svhQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gHQjs2rw4KUe3xE3aYlb47wmNQPPuJQwJK0VSYXT6aY=; b=bTuafvj0ge6NSuUoIye8PgtfobiE20J0lOpuAGPaeV1JMSiWoJBkFdhY1KI7N1oEQ3 5an5AwAu05dJH42wVTN8tR/n4MGPjVfPDoC/qNnPyn7dkJVEAGUtB8vwUHpmFRO+JqI8 FObsRP5NyJyXY+jNa/H60fDDEdeGEOmXLg2oj4V1qgBtlPdUPh0uwMKdGx2lU9uTvZku IOiZgH7MDmy4avwQlVgBzdbKQFlkSSz1uzDAKVqLV7FwosaAAIWKzz6YL/QTfXkBwd2f uVMlrJ2cNvhienQuzpXvs0qjOW5eVzGtqVk2kZx6roI9uAv0/KI2IcUbZcH6zRhuCNG7 fN2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rIq8Pt1R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k185-20020a6384c2000000b003fe1125ede1si3636902pgd.559.2022.06.07.23.05.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:05:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rIq8Pt1R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2F65E29566A; Tue, 7 Jun 2022 22:33:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353515AbiFHBna (ORCPT + 99 others); Tue, 7 Jun 2022 21:43:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383774AbiFGWGV (ORCPT ); Tue, 7 Jun 2022 18:06:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3E1C187C04; Tue, 7 Jun 2022 12:17:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 87F97B8237B; Tue, 7 Jun 2022 19:17:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F32EDC385A2; Tue, 7 Jun 2022 19:17:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629447; bh=1ccXHXOLc5bkJrMUGd4dBgKunxzafld5r3Mry26Bbio=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rIq8Pt1R86TwpdAbB0GJSm5h1biTrSZ/9UQaRoImR4vAUhiezB3BskOpeq3nDqAz3 UTvEd9r3T/M2xpiIqz1VMyhpXbQVvq0cFmH/Im7szLVQDzHKu+qQlDKA07SimdlfMk yvektF9SykHNAwshFz53q2aZXrAQGIeQtOQpNQAU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guo Ren , Palmer Dabbelt , Sasha Levin Subject: [PATCH 5.18 694/879] RISC-V: Fix the XIP build Date: Tue, 7 Jun 2022 19:03:32 +0200 Message-Id: <20220607165022.991461845@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Palmer Dabbelt [ Upstream commit d9e418d0ca1c464fe361468b772d4aa870d54e63 ] A handful of functions unused functions were enabled during XIP builds, which themselves didn't build correctly. This just disables the functions entirely. Fixes: e8a62cc26ddf ("riscv: Implement sv48 support") Reviewed-by: Guo Ren Link: https://lore.kernel.org/r/20220420184056.7886-5-palmer@rivosinc.com Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- arch/riscv/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index 05ed641a1134..39e2e1d0e94f 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -677,7 +677,7 @@ static __init pgprot_t pgprot_from_va(uintptr_t va) } #endif /* CONFIG_STRICT_KERNEL_RWX */ -#ifdef CONFIG_64BIT +#if defined(CONFIG_64BIT) && !defined(CONFIG_XIP_KERNEL) static void __init disable_pgtable_l5(void) { pgtable_l5_enabled = false; -- 2.35.1