From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B424E2AD31; Sat, 20 Sep 2025 00:14:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758327280; cv=none; b=EMQvUnT70qSC4bTbvcw9syA70N2HOwjo8rIxBqAo+wNOP/YRpID12snS7zeoSYkkRdTXUcosty9KHGnHCN3sUy9RBobIznuW6kAOhJa0DPPTtqwNR3AdPJcOQhX0A2jF4yCzXPBZnOfaypJkzNE+GAvJldOnjqSSIoLnHobn668= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758327280; c=relaxed/simple; bh=O0bDy6Ix2CSa2N0Q4JTxtP6HuLT6aOmOzysAyCGa/JQ=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=uBkdrQkhYDYx6sf9jQToGhx/utbu77DidDWgtp5Er1DyDKp1c/dFdjXcp+VMDOHT6LbJ6F7XNw0aQOzCggwANm7pKXSieOmMN4OIGMDZs5my1tsE+DPDosTnmFAX4/Va6xB4f9OLcdcKEaKZytK3OlV2XqL/GhOBDBacQR3sCGw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=L3hzw6hs; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="L3hzw6hs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F96FC4CEF0; Sat, 20 Sep 2025 00:14:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758327280; bh=O0bDy6Ix2CSa2N0Q4JTxtP6HuLT6aOmOzysAyCGa/JQ=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=L3hzw6hsVszuDiJHPBCY82Amym8WdjwMr0g4coY501cIx1Z/cbkmYyw7MErPFCgVY 9zOiRwZwy5zm841JL2MsK2jzXeQ3zuoERdnS/L8wMExSvv1T0o7mYbdFrsEWlA4SkK 3svAd1LFwZ7z30kKWvM0DWesAGVpKsw7bZJco19Lm5M47zZgjVJZtlKLQMBsZ7yYaA FJfwNW5bTkOWmd9ZQMsw1BtXtJxClMXZcosYuHHq5MUc0nBPwOIMN0/MJI58CzbCdH z1MYamA/HTdmcm+e+/bELj1O9aqgYTVQyFTPfnXkV3EothiEolqhY+/B6Fha//O50S IdN4mLe8ZgdZQ== Date: Fri, 19 Sep 2025 18:14:34 -0600 (MDT) From: Paul Walmsley To: Christophe Leroy cc: Arnd Bergmann , linux-arch@vger.kernel.org, Andrew Morton , linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Peter Xu , Oscar Salvador , Alexandre Ghiti Subject: Re: [PATCH v2] asm-generic: Remove pud_user() from pgtable-nopmd.h In-Reply-To: Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Mon, 18 Aug 2025, Christophe Leroy wrote: > Commit 2c8a81dc0cc5 ("riscv/mm: fix two page table check related > issues") added pud_user() in include/asm-generic/pgtable-nopmd.h > > But pud_user() only exists on ARM64 and RISCV and is not expected > by any part of MM. > > Add the missing definition in arch/riscv/include/asm/pgtable-32.h > and remove it from asm-generic/pgtable-nopmd.h > > A stub pud_user() is also required for ARM64 after > commit ed928a3402d8 ("arm64/mm: fix page table check compile > error for CONFIG_PGTABLE_LEVELS=2") > > Signed-off-by: Christophe Leroy > Reviewed-by: Peter Xu > Reviewed-by: Oscar Salvador > Acked-by: Alexandre Ghiti # riscv > Acked-by: Catalin Marinas Acked-by: Paul Walmsley # riscv - Paul