lkml.org 
[lkml]   [2010]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [2.6.37-rc1] /proc/vmstat failure.
From
Date
Wu Fengguang wrote:
> On Wed, Nov 03, 2010 at 07:11:11PM +0800, Tetsuo Handa wrote:
> > Hello.
> >
> > "cat /proc/vmstat" triggered below failure.
> >
> > BUG: unable to handle kernel paging request at 07c06d16
> > IP: [<c050c336>] strnlen+0x6/0x20
>
> It seems that m->private is of type (void *) while the original v is
> (unsigned long *). Can be fixed by the following patch.

Fixed by this patch. Thank you.

By the way, GCC treats "(void *) + offset" as "(char *) + offset"
but it is GCC specific extention. Maybe we should avoid such usage
in order to avoid build failure for other compilers.


\
 
 \ /
  Last update: 2010-11-03 22:57    [W:0.106 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site