diff options
Diffstat (limited to 'include/asm-cris')
-rw-r--r-- | include/asm-cris/pgtable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-cris/pgtable.h b/include/asm-cris/pgtable.h index 4c373624ee97..829e7a7d9fb9 100644 --- a/include/asm-cris/pgtable.h +++ b/include/asm-cris/pgtable.h | |||
@@ -231,7 +231,7 @@ static inline void pmd_set(pmd_t * pmdp, pte_t * ptep) | |||
231 | #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1)) | 231 | #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1)) |
232 | 232 | ||
233 | /* to find an entry in a page-table-directory */ | 233 | /* to find an entry in a page-table-directory */ |
234 | static inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address) | 234 | static inline pgd_t * pgd_offset(const struct mm_struct *mm, unsigned long address) |
235 | { | 235 | { |
236 | return mm->pgd + pgd_index(address); | 236 | return mm->pgd + pgd_index(address); |
237 | } | 237 | } |