On Thu, Jan 10, 2008 at 11:06:46PM -0200, Fernando Benedictti wrote: > Hellow there, > > I'm trying to write a module, in my source i've added the following line > > #include <linux/module.h> > > Since the preprocessor did not found it, i set the variable > > C_INCLUDE_PATH=/usr/src/linux-2.6.22.5-31/include > > When i try to compile the source, the preprocessor tell me the following
Try reading the documentation on how to make a kernel module makefile in the Documentation/kbuild/ directory in the kernel tree. You do not need to define something like this, the kernel build system does it all for you. Also, try reading the first few chapters of "Linux Device Drivers, third edition", free online, which explains how to do this also. The best place to ask these kinds of questions is on the kernelnewbies mailing list. Also look at the documentation at kernelnewbies.org on how to do this, it should help explain it too. good luck, greg k-h -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
