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

RE: insmod problem



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 

#define __NO_VERSION__

in all but one of the C source files that are part of the module.

________________________________________
Nat Ersoz             Myrio Corporation   -o) 
nat.ersoz@myrio.com                       /\\
Phone: 425.897.7278   Fax:425.897.5600   _\_V
3500 Carillon Point   Kirkland, WA 98033
-
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/