lkml.org 
[lkml]   [2008]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][trivial] mm/pagewalk.c break const constraint.
Hi

> > 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?

Yes, I use IA64.

> I think the correct way to resolve this is to
> make pgd_offset() take a const struct mm_struct * instead.

that makes sense.
OK, I will make patch again.

Thank you for very good opinion.





\
 
 \ /
  Last update: 2008-04-19 11:53    [W:3.336 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site