diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2008-02-07 03:10:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 12:10:06 -0500 |
commit | 5b808a593588b2e6235c59fcd278791c53667787 (patch) | |
tree | 6f163b052b8d9d3e8448dd8caf3459a0372dffc4 /include/asm-m68k | |
parent | d31d29540915f21d3f2bcfdd6d135fde328038a0 (diff) |
m68k: kill page walker compile warning
The recently introduced page walker (walk_page_range()) calls pgd_offset with a
const struct mm_struct pointer, causing the following compile warning on m68k:
mm/pagewalk.c:111: warning: passing argument 1 of 'pgd_offset' discards qualifiers from pointer target type
Make the `mm' parameter of the inline function pgd_offset() const to shut it
up.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-m68k')
-rw-r--r-- | include/asm-m68k/motorola_pgtable.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-m68k/motorola_pgtable.h b/include/asm-m68k/motorola_pgtable.h index d029b75bcf04..13135d4821d8 100644 --- a/include/asm-m68k/motorola_pgtable.h +++ b/include/asm-m68k/motorola_pgtable.h | |||
@@ -191,7 +191,8 @@ static inline pte_t pte_mkcache(pte_t pte) | |||
191 | #define pgd_index(address) ((address) >> PGDIR_SHIFT) | 191 | #define pgd_index(address) ((address) >> PGDIR_SHIFT) |
192 | 192 | ||
193 | /* to find an entry in a page-table-directory */ | 193 | /* to find an entry in a page-table-directory */ |
194 | static inline pgd_t *pgd_offset(struct mm_struct *mm, unsigned long address) | 194 | static inline pgd_t *pgd_offset(const struct mm_struct *mm, |
195 | unsigned long address) | ||
195 | { | 196 | { |
196 | return mm->pgd + pgd_index(address); | 197 | return mm->pgd + pgd_index(address); |
197 | } | 198 | } |