+31
−28
Loading
enum pgtable_type was introduced for arm64 by commit c64f46ee ("arm64: mm: use enum to identify pgtable level instead of *_SHIFT"). In the meantime, the generic enum pgtable_level got introduced by commit b22cc9a9 ("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; __pgd_pgtable_alloc() isn't expected to create PGD tables so we add a VM_WARN_ON() for that case. Suggested-by:David Hildenbrand (Arm) <david@kernel.org> Reviewed-by:
David Hildenbrand (Arm) <david@kernel.org> Reviewed-by:
Ryan Roberts <ryan.roberts@arm.com> Signed-off-by:
Kevin Brodsky <kevin.brodsky@arm.com> Reviewed-by:
Anshuman Khandual <anshuman.khandual@arm.com> Signed-off-by:
Catalin Marinas <catalin.marinas@arm.com>