The patch titled
m68k: kill page walker compile warning
has been added to the -mm tree. Its filename is
m68k-kill-page-walker-compile-warning.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: m68k: kill page walker compile warning
From: Geert Uytterhoeven <[EMAIL PROTECTED]>
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.
As cris also uses an inline function, I expect a similar warning to show up
there. All other archs use a macro to define pgd_offset.
Signed-off-by: Geert Uytterhoeven <[EMAIL PROTECTED]>
Cc: Mikael Starvik <[EMAIL PROTECTED]>
Cc: Matt Mackall <[EMAIL PROTECTED]>
Cc: Dave Hansen <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
include/asm-m68k/motorola_pgtable.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff -puN
include/asm-m68k/motorola_pgtable.h~m68k-kill-page-walker-compile-warning
include/asm-m68k/motorola_pgtable.h
--- a/include/asm-m68k/motorola_pgtable.h~m68k-kill-page-walker-compile-warning
+++ a/include/asm-m68k/motorola_pgtable.h
@@ -191,7 +191,8 @@ static inline pte_t pte_mkcache(pte_t pt
#define pgd_index(address) ((address) >> PGDIR_SHIFT)
/* 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);
}
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
origin.patch
add-cmpxchg_local-to-m86k.patch
m68k-kill-page-walker-compile-warning.patch
procfs-constify-function-pointer-tables.patch
avoid-overflows-in-kernel-timec.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html