Due to removing of kernel lock facility file "linux/smp_lock.h" is removed from kernel sources. This leads to compilation failure of any version of nvidia-drivers package I tried. Reproducible: Always Steps to Reproduce: 1. Prepare 2.6.39 sources 2. Try to emerge nvidia-drivers
Why I post bug here? I propose to add a small patch to nvidia-drivers ebuild. It's really simple - remove including of smp_lock.h from driver sources. Looks like developers in nvidia simply forget about it. Currently I have 2.6.39-rc1 kernel and nvidia-drivers 260.19.36 compiled with proposed patch.
Created attachment 268851 [details, diff] patch for nvidia driver sources patch for nvidia driver sources to compile with kernel 2.6.39
Despite of releasing of new nvidia-drivers (270.41.03) which are compiles with kernel 2.6.39 I propose to add this patch to allow successful compilation of older 260.x drivers.
We have a policy of not patching older series for newer kernels since this is not supported by NVIDIA.