2011-04-04 13:22:30

by Cyril Hrubis

[permalink] [raw]
Subject: WARNING: at mm/page_alloc.c

Hi!
I'm playing with uinput on zaurus (spitz) I've a pxa-2.6 kernel flashed in the
uinput is loaded as module. Right after my program called:

ioctl(fd, UI_DEV_CREATE);

I've got:

WARNING: at mm/page_alloc.c:2012 __alloc_pages_nodemask+0148/0x5a8()

and the ioctl() has failed.

Anybody has an idea what went wrong?
--
metan


2011-04-04 21:29:15

by Dmitry Torokhov

[permalink] [raw]
Subject: Re: WARNING: at mm/page_alloc.c

On Mon, Apr 04, 2011 at 03:22:26PM +0200, Cyril Hrubis wrote:
> Hi!
> I'm playing with uinput on zaurus (spitz) I've a pxa-2.6 kernel flashed in the
> uinput is loaded as module. Right after my program called:
>
> ioctl(fd, UI_DEV_CREATE);
>
> I've got:
>
> WARNING: at mm/page_alloc.c:2012 __alloc_pages_nodemask+0148/0x5a8()
>
> and the ioctl() has failed.
>
> Anybody has an idea what went wrong?

You do not have enough memory?

Maybe if you could post your program we could see what exactly went
wrong...

Thanks.

--
Dmitry

2011-04-04 22:06:25

by Cyril Hrubis

[permalink] [raw]
Subject: Re: WARNING: at mm/page_alloc.c

Hi!
> Maybe if you could post your program we could see what exactly went
> wrong...

Gone trought my code once again and found small typo in sizeof() in
uinput_user_dev initialization.

Sorry for the noise.

--
metan