Finish up what commit c2febafc6773 ("mm: convert generic code to 5-level paging") started while levelling up P4D huge mapping support at par with PUD and PMD. A new arch call back arch_ioremap_p4d_supported() is added which just maintains status quo (P4D huge map not supported) on x86, arm64 and powerpc. When HAVE_ARCH_HUGE_VMAP is enabled its just a simple check from the arch about the support, hence runtime effects are minimal.
Showing the changes to include/linux (1 of 5 files). Show all
Unified · Split
| @@ -33,6 +33,7 @@ static inline int ioremap_page_range(unsigned long addr, unsigned long end, · 32 unmodified lines | |||
| 33 | 33 | ||
| 34 | #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP | 34 | #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP |
| 35 | void __init ioremap_huge_init(void); | 35 | void __init ioremap_huge_init(void); |
| 36 | int arch_ioremap_p4d_supported(void); | ||
| 36 | int arch_ioremap_pud_supported(void); | 37 | int arch_ioremap_pud_supported(void); |
| 37 | int arch_ioremap_pmd_supported(void); | 38 | int arch_ioremap_pmd_supported(void); |
| 38 | #else | 39 | #else |