[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: insmod problem
On Wed, Jul 18, 2001 at 11:04:53AM -0700, Nat Ersoz wrote:
> I found that the order of #includes that works for me looks like this:
>
> #include <linux/module.h>
> #include <linux/modversions.h>
> #include <linux/kernel.h>
>
> I always include -DMODULE -DMODVERSIONS -D__KERNEL__ on the compile command
> line. As stated in another e-mail, if you are compiling a module with more
> than one 'C' language source file, then you should
you shouldn't have to include modversions.h ...
john
--
"Voodoo Programming: Things programmers do that they know shouldn't work but
they try anyway, and which sometimes actually work, such as recompiling
everything."
- Karl Lehenbauer
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/