[SOLVED] Can't build Nvidia module for my GeForce card

I posted this to the GeForce but I have been told that this forum is more appropriate:

I have just upgraded a system to Slackware 14.1. This system now runs a 32-bit SMP Linux kernel, version 3.10.17. My Nvidia graphics adaptor is identified by the hwinfo utility as nVidia C61 [GeForce 7025 / nForce 630a]. On this basis I downloaded the Nvidia drivers for the GeForce Series 7 cards. I have tried with three different versions: 304.37, 304.60 and 304.88.

When trying to install either of the first two I am getting the following error immediately:

ERROR: The kernel header file
‘/lib/modules/3.10.17-smp/build/include/linux/version.h’ does not exist. The most likely reason for this is that the kernel source files in ‘/lib/modules/3.10.17-smp/build’ have not been configured.

I tried doing ‘make oldconfig && make prepare’ at the root of my kernel sources, but it made no difference.

When trying to install the 304.88, the compilation of the module seems to be initially fine, but it ends prematurely. In the /var/log/nvidia-installer.log file I find the following:

/usr/src/linux-3.10.17/arch/x86/include/asm/uaccess_32.h: In function ‘copy_from_user’:
/usr/src/linux-3.10.17/arch/x86/include/asm/uaccess_32.h:208:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz == -1 || sz >= n))
/usr/src/linux-3.10.17/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’

define likely(x) __builtin_expect(!!(x), 1)

/tmp/selfgz3296/NVIDIA-Linux-x86-304.88/kernel/nv-i2c.c: In function ‘nv_i2c_del_adapter’:
/tmp/selfgz3296/NVIDIA-Linux-x86-304.88/kernel/nv-i2c.c:327:14: error: void value not ignored as it ought to be
osstatus = i2c_del_adapter(pI2cAdapter);
make[4]: *** [/tmp/selfgz3296/NVIDIA-Linux-x86-304.88/kernel/nv-i2c.o] Error 1
make[3]: *** [module/tmp/selfgz3296/NVIDIA-Linux-x86-304.88/kernel] Error 2
make[2]: *** [sub-make] Error 2
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.

Are there any Nvidia drivers that I can build for this kernel version/hardware combination?

Replying to myself: I just noticed, thanks to the entry at the top of this forum, that the latest driver for GeForce Series 7 is 304.123. I downloaded it and I could install the driver without any issues in the system I described.