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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CFDB8C79FA0 for ; Mon, 7 Sep 2026 08:06:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wqXXgG9iIP5T+b+P3jUoq3xGKl6/+z2fyqj19RRhjC0=; b=BqLcb8UfKVWh8b 38R4J8J+yRkeOfCTBGzkQWULcHaI5l2Dl3MkKdZbL9fr2BFmBoNV0ngJdI0HLT+t21OXOodvbUB98 /6f4Ge7d0z1hIfbGlxnwojAUMhq3yUr74Mxn5VQXqV7/nH10YK+NV2ckhHYP+XlVq2HHs9iTcntz7 /rVwgEqRMXwG8KRWvxQ+nPbzuXQTwwQ3ArLFF4a+9ITU+Yf2e8e5sb8K1DAppyyRU+wX4DSNS1i5F h73wX/FF3ZGE/5LqbI7nIEmnocm5d9zgSL5x+UqjbEWZdu7jSmZvjt5KWefN68Di5zdDVq0SPoEJM n+XkT+1+vsz63J3eMHjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x3UNJ-00000006Drq-3X1N; Mon, 07 Sep 2026 08:06:45 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x3UNA-00000006DqZ-1o0M; Mon, 07 Sep 2026 08:06:39 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BB1BC1477; Mon, 7 Sep 2026 01:06:29 -0700 (PDT) Received: from e129823.arm.com (e129823.arm.com [10.2.213.3]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 18C753F7D8; Mon, 7 Sep 2026 01:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1788768393; bh=M02Zz7duqtLH9w5WcLt9dmTeIbG6UdWlqLh0VhnRN2c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vX9YEFxmN++GHfkO2xxc2HRCAVQZnfcF+y1vVz4p+I67mwn/6aHZjc3V5wQk92028 QjFA4Ff9sydSH7mdW6Ml8i/iDQuE/cqvG/ChPtrzIxW16rDWLljleu6TZ5iGFYY1Y2 dWFeU1IDBLwdUjSKvUI2sIAZ7djSAJVGofJYXeo8= Date: Mon, 7 Sep 2026 09:06:24 +0100 From: Yeoreum Yun To: Dave Hansen Cc: Yeoreum Yun , Russell King , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Catalin Marinas , Will Deacon , Arnd Bergmann , Andrew Morton , Kairui Song , Qi Zheng , Shakeel Butt , Barry Song , Axel Rasmussen , Yuanchu Xie , Wei Xu , Johannes Weiner , David Hildenbrand , Michal Hocko , Lorenzo Stoakes , Tianrui Zhao , Bibo Mao , Anup Patel , Atish Patra , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Jonas Bonn , Stefan Kristiansson , Stafford Horne , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-openrisc@vger.kernel.org Subject: Re: [PATCH RFC v3 13/21] x86: mm: use pgtable_level enum in effective_prot_pXd() Message-ID: References: <20260902-dummy_ptxp3-v3-0-5d8f5b17c25c@arm.com> <20260902-dummy_ptxp3-v3-13-5d8f5b17c25c@arm.com> <8f3979a9-238a-4d7d-a040-6aa526fedec5@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8f3979a9-238a-4d7d-a040-6aa526fedec5@intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260907_010636_508092_44CCC2E3 X-CRM114-Status: GOOD ( 12.03 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Wed, Sep 02, 2026 at 01:48:03PM -0700, Dave Hansen wrote: > On 9/2/26 04:56, Yeoreum Yun wrote: > > Instead of using hard-coded integer in effective_prot_pXd(), use > > pgtable level enum. > > Does this actually *do* anything? ;) > > I guess it's nice to have a wee bit of type safety from the enum and it > means that you don't have to *know* which level number a PUD is, for > example. > > Either way: > > Acked-by: Dave Hansen Thanks! -- Sincerely, Yeoreum Yun _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv