]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-cris/pgtable.h
cris: add constfy to pgd_offset()
[linux-2.6-omap-h63xx.git] / include / asm-cris / pgtable.h
index 4c373624ee97c644a85c5c16ad538f27777489cb..829e7a7d9fb9b7b75457337e178dc9a6e2591576 100644 (file)
@@ -231,7 +231,7 @@ static inline void pmd_set(pmd_t * pmdp, pte_t * ptep)
 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
 
 /* to find an entry in a page-table-directory */
-static inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address)
+static inline pgd_t * pgd_offset(const struct mm_struct *mm, unsigned long address)
 {
        return mm->pgd + pgd_index(address);
 }