.. | .. |
---|
2 | 2 | #ifndef __ASM_SH_PGTABLE_3LEVEL_H |
---|
3 | 3 | #define __ASM_SH_PGTABLE_3LEVEL_H |
---|
4 | 4 | |
---|
5 | | -#define __ARCH_USE_5LEVEL_HACK |
---|
6 | 5 | #include <asm-generic/pgtable-nopud.h> |
---|
7 | 6 | |
---|
8 | 7 | /* |
---|
.. | .. |
---|
38 | 37 | return pud_val(pud); |
---|
39 | 38 | } |
---|
40 | 39 | |
---|
41 | | -#define pmd_index(address) (((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1)) |
---|
42 | | -static inline pmd_t *pmd_offset(pud_t *pud, unsigned long address) |
---|
43 | | -{ |
---|
44 | | - return (pmd_t *)pud_page_vaddr(*pud) + pmd_index(address); |
---|
45 | | -} |
---|
46 | | - |
---|
| 40 | +/* only used by the stubbed out hugetlb gup code, should never be called */ |
---|
| 41 | +#define pud_page(pud) NULL |
---|
47 | 42 | #define pud_none(x) (!pud_val(x)) |
---|
48 | 43 | #define pud_present(x) (pud_val(x)) |
---|
49 | 44 | #define pud_clear(xp) do { set_pud(xp, __pud(0)); } while (0) |
---|