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

2.2.x module to 2.2.4



Hi

I am testing a driver made for a 2.2.x with a 2.4.x kernel, i must to
adapt this driver for this release but when i try to control I get:

[eferro@localhost acl7130]$ make clean; make
rm -f *.o *~ test-salidas test-entradas test-ioctl *.pre.c
rm -f /dev/acl7130*
gcc -O -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX  -c  acl7130.c -o acl7130gen.o
In file included from acl7130.c:66:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but headers from an appropriate kernel-source
make: *** [acl7130gen.o] Error 1

I think that this error is generated by:

#if CONFIG_MODVERSIONS==1
#define MODVERSIONS
#include <linux/modversions.h>
#endif

but i don`t know how to change it...
I need that the driver compile for 2.2 and for 2.4 so i need some
examples of the ifdefs necesarys to do this...

Anyhelp would be apreciated

-- 
Hasta otra!

	Eduardo Ferro Aldama     eferro@euskalnet.net 
	http://www.todolinux.net/usuarios/eferro/

La web del GLUB http://glub.ehu.es/
Grupo Linux Usuarios de Bizkaia

==/==/==/==Police tagline==/==/==Do not cross ==/==/==/==
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/