Messages in this thread | | | Date | Sat, 19 Apr 2008 11:34:24 +0200 | From | "Vegard Nossum" <> | Subject | Re: [PATCH][trivial] mm/pagewalk.c break const constraint. |
| |
On Sat, Apr 19, 2008 at 11:26 AM, KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote: > 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.
Is this ia64 or cris? I think the correct way to resolve this is to make pgd_offset() take a const struct mm_struct * instead.
Vegard
-- "The animistic metaphor of the bug that maliciously sneaked in while the programmer was not looking is intellectually dishonest as it disguises that the error is the programmer's own creation." -- E. W. Dijkstra, EWD1036
| |