m68k: kill page walker compile warning
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 7 Feb 2008 08:10:37 +0000 (09:10 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 7 Feb 2008 17:10:06 +0000 (09:10 -0800)
commit5b808a593588b2e6235c59fcd278791c53667787
tree6f163b052b8d9d3e8448dd8caf3459a0372dffc4
parentd31d29540915f21d3f2bcfdd6d135fde328038a0
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>
include/asm-m68k/motorola_pgtable.h