[PATCH] arm64: mm: Use generic enum pgtable_level

David Hildenbrand (Arm) david at kernel.org
Mon Mar 16 07:07:51 PDT 2026


On 3/16/26 15:01, Kevin Brodsky wrote:
> enum pgtable_type was introduced for arm64 by commit c64f46ee1377
> ("arm64: mm: use enum to identify pgtable level instead of
> *_SHIFT"). In the meantime, the generic enum pgtable_level got
> introduced by commit b22cc9a9c7ff ("mm/rmap: convert "enum
> rmap_level" to "enum pgtable_level"").
> 
> Let's switch to the generic enum pgtable_level. The only difference
> is that it also includes PGD level - this isn't relevant in
> __pgd_pgtable_alloc() so we just add a default statement.
> 
> Suggested-by: David Hildenbrand (Arm) <david at kernel.org>
> Signed-off-by: Kevin Brodsky <kevin.brodsky at arm.com>

Reviewed-by: David Hildenbrand (Arm) <david at kernel.org>

Thanks!

-- 
Cheers,

David



More information about the linux-arm-kernel mailing list