Re: kernel modules - big problems

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

 



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/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux