diff options
Diffstat (limited to 'arch/powerpc/include/asm/pgtable.h')
-rw-r--r-- | arch/powerpc/include/asm/pgtable.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pgtable.h b/arch/powerpc/include/asm/pgtable.h index 3f53be60fb01..bf7d771f342e 100644 --- a/arch/powerpc/include/asm/pgtable.h +++ b/arch/powerpc/include/asm/pgtable.h | |||
@@ -140,6 +140,30 @@ static inline void pte_frag_set(mm_context_t *ctx, void *p) | |||
140 | } | 140 | } |
141 | #endif | 141 | #endif |
142 | 142 | ||
143 | #ifndef pmd_is_leaf | ||
144 | #define pmd_is_leaf pmd_is_leaf | ||
145 | static inline bool pmd_is_leaf(pmd_t pmd) | ||
146 | { | ||
147 | return false; | ||
148 | } | ||
149 | #endif | ||
150 | |||
151 | #ifndef pud_is_leaf | ||
152 | #define pud_is_leaf pud_is_leaf | ||
153 | static inline bool pud_is_leaf(pud_t pud) | ||
154 | { | ||
155 | return false; | ||
156 | } | ||
157 | #endif | ||
158 | |||
159 | #ifndef pgd_is_leaf | ||
160 | #define pgd_is_leaf pgd_is_leaf | ||
161 | static inline bool pgd_is_leaf(pgd_t pgd) | ||
162 | { | ||
163 | return false; | ||
164 | } | ||
165 | #endif | ||
166 | |||
143 | #endif /* __ASSEMBLY__ */ | 167 | #endif /* __ASSEMBLY__ */ |
144 | 168 | ||
145 | #endif /* _ASM_POWERPC_PGTABLE_H */ | 169 | #endif /* _ASM_POWERPC_PGTABLE_H */ |