Hmm. Have a look at these options of modprobe: --force --force-vermagic
--force-modversion. As described in manpage, use of these can be risky but
it might get you able to load and test your module until the build issue
can be resolved.
Back to the build issue...there is more to to the kernel version than uname
-r. What you really need to look at is the vermagic string of the running
kernel so that you can match that up with the vermagic string of your
module. You can try running this to get the running kernels vermagic:
sudo stap -g -e 'probe begin { log ( %{ VERMAGIC_STRING /* string */ %} )
exit() }'
3.10.0-693.2.2.el7.x86_64 SMP mod_unload modversions
Seems like there should be an easier way to get this as not all systems
have stap. Alternatively, look at the file ./include/linux/vermagic.h.
Those will define vermagic string components that should be in your kernels
vermagic.
One more thing - look at the modinfo output from a module that does run on
your kernel. That will give you evidence of what your module's vermagic
should look like.