Re: whose job is it to include various header files?

From: Robert P. J. Day
Date: Fri Mar 14 2008 - 04:02:43 EST


On Fri, 14 Mar 2008, Alexey Dobriyan wrote:

> On Thu, Mar 13, 2008 at 09:53:01PM -0400, Robert P. J. Day wrote:

> > includes from <linux/percpu.h>:
> >
> > #include <linux/slab.h>
>
> This needed for kzalloc().

oh, &%^^%*(&^), you're right. i looked at the comment, where it said
it needed that include for "kmalloc", grepped, didn't see kmalloc so
thought that include was unnecessary. i didn't even notice the
"kzalloc". my bad, profuse apologies. argh.

rday
--


========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/