[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Include path in module compilation



On Wed, 4 Feb 2004, Gilad Benjamini wrote:

> Hi,
> My common sense says that kernel code (be it in a 
> module or not) should compile only with kernel
> headers.
> Looking at kernel newbies (and other places as well)
> I see that kernel modules are compile with the
> -I/path/to/kernel/headers.
> Meaning not only that the standard includes (i.e.
> /usr/include) are used, but also that they are used
> BEFORE the kernel headers.

I didn't think that eternal library calls were allowed
in kernel modules at all.

I don't think the /usr/include header files should be used.

Ian


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/