There are no architectures that use include/asm-generic/4level-fixup.h therefore it can be removed along with __ARCH_HAS_4LEVEL_HACK define.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -1838,12 +1838,12 @@ static inline void mm_dec_nr_ptes(struct mm_struct *mm) {} · 1837 unmodified lines | ||
| 1838 | 1838 | int __pte_alloc(struct mm_struct *mm, pmd_t *pmd); |
| 1839 | 1839 | int __pte_alloc_kernel(pmd_t *pmd); |
| 1840 | 1840 | |
| 1841 | +#if defined(CONFIG_MMU) | |
| 1842 | + | |
| 1841 | 1843 | /* |
| 1842 | − * The following ifdef needed to get the 4level-fixup.h header to work. | |
| 1843 | − * Remove it when 4level-fixup.h has been removed. | |
| 1844 | + * The following ifdef needed to get the 5level-fixup.h header to work. | |
| 1845 | + * Remove it when 5level-fixup.h has been removed. | |
| 1844 | 1846 | */ |
| 1845 | −#if defined(CONFIG_MMU) && !defined(__ARCH_HAS_4LEVEL_HACK) | |
| 1846 | − | |
| 1847 | 1847 | #ifndef __ARCH_HAS_5LEVEL_HACK |
| 1848 | 1848 | static inline p4d_t *p4d_alloc(struct mm_struct *mm, pgd_t *pgd, |
| 1849 | 1849 | unsigned long address) |
| @@ -1865,7 +1865,7 @@ static inline pmd_t *pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long a · 15 unmodified lines | ||
| 1865 | 1865 | return (unlikely(pud_none(*pud)) && __pmd_alloc(mm, pud, address))? |
| 1866 | 1866 | NULL: pmd_offset(pud, address); |
| 1867 | 1867 | } |
| 1868 | −#endif /* CONFIG_MMU && !__ARCH_HAS_4LEVEL_HACK */ | |
| 1868 | +#endif /* CONFIG_MMU */ | |
| 1869 | 1869 | |
| 1870 | 1870 | #if USE_SPLIT_PTE_PTLOCKS |
| 1871 | 1871 | #if ALLOC_SPLIT_PTLOCKS |