History

mm: remove __ARCH_HAS_4LEVEL_HACK and include/asm-generic/4level-fixup.h

There are no architectures that use include/asm-generic/4level-fixup.h therefore it can be removed along with __ARCH_HAS_4LEVEL_HACK define.

Mike Rapoport committed 6 years ago

Commit f9492861 parent e19f97e3 files · +5 −52Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/mm.h+5−5
@@ -1838,12 +1838,12 @@ static inline void mm_dec_nr_ptes(struct mm_struct *mm) {} · 1837 unmodified lines
1838int __pte_alloc(struct mm_struct *mm, pmd_t *pmd);1838int __pte_alloc(struct mm_struct *mm, pmd_t *pmd);
1839int __pte_alloc_kernel(pmd_t *pmd);1839int __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.1844 * The following ifdef needed to get the 5level-fixup.h header to work.
1843 * Remove it when 4level-fixup.h has been removed.1845 * Remove it when 5level-fixup.h has been removed.
1844 */1846 */
1845#if defined(CONFIG_MMU) && !defined(__ARCH_HAS_4LEVEL_HACK)
1846
1847#ifndef __ARCH_HAS_5LEVEL_HACK1847#ifndef __ARCH_HAS_5LEVEL_HACK
1848static inline p4d_t *p4d_alloc(struct mm_struct *mm, pgd_t *pgd,1848static inline p4d_t *p4d_alloc(struct mm_struct *mm, pgd_t *pgd,
1849 unsigned long address)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 return (unlikely(pud_none(*pud)) && __pmd_alloc(mm, pud, address))?1865 return (unlikely(pud_none(*pud)) && __pmd_alloc(mm, pud, address))?
1866 NULL: pmd_offset(pud, address);1866 NULL: pmd_offset(pud, address);
1867}1867}
1868#endif /* CONFIG_MMU && !__ARCH_HAS_4LEVEL_HACK */1868#endif /* CONFIG_MMU */
1869 1869
1870#if USE_SPLIT_PTE_PTLOCKS1870#if USE_SPLIT_PTE_PTLOCKS
1871#if ALLOC_SPLIT_PTLOCKS1871#if ALLOC_SPLIT_PTLOCKS

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t