[PATCH RFC v3 13/21] x86: mm: use pgtable_level enum in effective_prot_pXd()
Dave Hansen
dave.hansen at intel.com
Wed Sep 2 13:48:03 PDT 2026
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 <dave.hansen at linux.intel.com>
More information about the linux-riscv
mailing list