writing drivers for kernel 2.4.20-8
I was trying to compile a simple program and insert using insmod on
kernel 2.4.20-8 (the redhat machine we had). I wrote a simple print
program and i compliled it using
$cc -c helloworld.c
to generate the object file and i tried to insert the object using
And it gave the following error message
helloworld.o: kernel-module version mismatch
******* helloworld.o was compiled for kernel version 2.4.20
******* while this kernel is version 2.4.20-8.
Pls help me solve this issue.I searched google and i could not find.
Thanks and Kind Regards,