Just a heads up,343.22 driver installation didn’t work for me for me with linux 3.18-rc1:
/var/lib/dkms/nvidia/343.22/build/nv-drm.c:24:27: error: field ‘base’ has incomplete type
struct drm_gem_object base;
I use that patch with 3.16, 3.17 and 3.18-rc without any problems.
That’s why the ifdef is there: in 3.18 struct drm_gem_object moved to drm/drm_gem.h,
in previous versions it’s in drm/drmP.h
Yup, was too lazy to fix the warning in dmesg (since it was workingh without it anyway).
Since object is likely not to move again anytime soon, perhaps macro against KERNEL_VERSION(3,18,0) is in order?