Commit:     5b808a593588b2e6235c59fcd278791c53667787
Parent:     d31d29540915f21d3f2bcfdd6d135fde328038a0
Author:     Geert Uytterhoeven <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 7 09:10:37 2008 +0100
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Feb 7 09:10:06 2008 -0800

    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 
        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
    Signed-off-by: Geert Uytterhoeven <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 include/asm-m68k/motorola_pgtable.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/asm-m68k/motorola_pgtable.h 
index d029b75..13135d4 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)
 #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);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to