sometimes it gives this error during insertion.I am not very sure how it can be fixed but yes,you can do one thing--compile your kernel with modversioning option OFF.just do make menuconfig,there you go to "Loadable module support" option ,select it and in that you will find "set version info on all module symbols",make it N and compile the kernel.
then there is no need for if CONFIG_MODVERSIONS code.
no need for version.h either.
also add #define MODULE in your code.
hope it will work
|