334.16 won't compile for Linux v3.13 (patch included)

That should not happen. It is not correct for 3.13. The code that you patched there should not show up on kernel 3.13 because it will be killed by the #ifdef NV_KUID_T_PRESENT. If it did show up, it wouldn’t compile because it would be redefining the __kuid_val function and the kuid typedef. It works and compiles without that chunk.