[PATCH RFC v3 13/21] x86: mm: use pgtable_level enum in effective_prot_pXd()
Yeoreum Yun
yeoreum.yun at arm.com
Mon Sep 7 01:06:24 PDT 2026
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 <dave.hansen at linux.intel.com>
Thanks!
--
Sincerely,
Yeoreum Yun
More information about the linux-riscv
mailing list