.. | .. |
---|
89 | 89 | #ifndef pmd_offset |
---|
90 | 90 | static inline pmd_t *pmd_offset(pud_t *pud, unsigned long address) |
---|
91 | 91 | { |
---|
92 | | - return (pmd_t *)pud_page_vaddr(*pud) + pmd_index(address); |
---|
| 92 | + return pud_pgtable(*pud) + pmd_index(address); |
---|
93 | 93 | } |
---|
94 | 94 | #define pmd_offset pmd_offset |
---|
95 | 95 | #endif |
---|
.. | .. |
---|
97 | 97 | #ifndef pud_offset |
---|
98 | 98 | static inline pud_t *pud_offset(p4d_t *p4d, unsigned long address) |
---|
99 | 99 | { |
---|
100 | | - return (pud_t *)p4d_page_vaddr(*p4d) + pud_index(address); |
---|
| 100 | + return p4d_pgtable(*p4d) + pud_index(address); |
---|
101 | 101 | } |
---|
102 | 102 | #define pud_offset pud_offset |
---|
103 | 103 | #endif |
---|