This can happen if your linux kernel and your modules have a mismatch. Cases like you do insmod to a different version of the kernel than the one you created for the module.
Make sure that you are using the version of the kernel on which your module is created. I assume that you used the wrong version of the kernel headers. Try changing this.
source
share