linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][trivial] mm/pagewalk.c break const constraint.
@ 2008-04-19  9:26 KOSAKI Motohiro
  2008-04-19  9:34 ` Vegard Nossum
  0 siblings, 1 reply; 8+ messages in thread
From: KOSAKI Motohiro @ 2008-04-19  9:26 UTC (permalink / raw)
  To: Matt Mackall, LKML, Andrew Morton, Linus Torvalds; +Cc: kosaki.motohiro

patch against 2.6.25

when compile 2.6.25, following warnings was outputed.

  CC      mm/pagewalk.o
mm/pagewalk.c: In function 'walk_page_range':
mm/pagewalk.c:111: warning: passing argument 1 of 'pgd_offset' discards qualifiers from p\
ointer target type

mm argument of walk_page_range() is unnecessary const restriction. 
this patch is no functional change. it's only remove warning.

Thanks!


Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
CC: Matt Mackall <mpm@selenic.com>

---
 include/linux/mm.h |    2 +-
 mm/pagewalk.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: b/mm/pagewalk.c
===================================================================
--- a/mm/pagewalk.c     2008-04-19 17:46:34.000000000 +0900
+++ b/mm/pagewalk.c     2008-04-19 18:43:58.000000000 +0900
@@ -97,7 +97,7 @@ static int walk_pud_range(pgd_t *pgd, un
  * If any callback returns a non-zero value, the walk is aborted and
  * the return value is propagated back to the caller. Otherwise 0 is returned.
  */
-int walk_page_range(const struct mm_struct *mm,
+int walk_page_range(struct mm_struct *mm,
                    unsigned long addr, unsigned long end,
                    const struct mm_walk *walk, void *private)
 {
Index: b/include/linux/mm.h
===================================================================
--- a/include/linux/mm.h        2008-04-19 17:46:12.000000000 +0900
+++ b/include/linux/mm.h        2008-04-19 18:44:14.000000000 +0900
@@ -746,7 +746,7 @@ struct mm_walk {
        int (*pte_hole)(unsigned long, unsigned long, void *);
 };

-int walk_page_range(const struct mm_struct *, unsigned long addr,
+int walk_page_range(struct mm_struct *, unsigned long addr,
                    unsigned long end, const struct mm_walk *walk,
                    void *private);
 void free_pgd_range(struct mmu_gather **tlb, unsigned long addr,






^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-04-19 22:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-19  9:26 [PATCH][trivial] mm/pagewalk.c break const constraint KOSAKI Motohiro
2008-04-19  9:34 ` Vegard Nossum
2008-04-19  9:50   ` KOSAKI Motohiro
2008-04-19 10:04     ` [PATCH][trivial][0/2] mm/pagewalk.c break const constraint. take2 KOSAKI Motohiro
2008-04-19 10:07       ` [PATCH][trivial][1/2] ia64: add constfy to pgd_offset() KOSAKI Motohiro
2008-04-19 10:09         ` [PATCH][trivial][2/2] cris: " KOSAKI Motohiro
2008-04-19 17:13           ` Dmitri Vorobiev
2008-04-19 22:07           ` Jesper Nilsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).