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

Re: kernel modules - big problems



On Thursday 03 July 2003 12:19, Arjan van de Ven wrote:
> On Thu, 2003-07-03 at 11:16, Michael Svetlik wrote:
> > You need to declare the preprocessor #define's __KERNEL__, MODULE and
> > MODVERSIONS.
>
> like heck you don't!
> Never ever do that in .c files!

Oops. Why not ?
In a single file, like that hello ?
Does gcc hook on __KERNEL__ ?
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/