Compile Nvidia Driver on Linux DRM Intel Nightly kernel

Hi, I’m trying to compile the nvidia driver 375.26 on the Linux branch drm-intel-nightly, kernel 4.10.0-1.
I’ve applied the patches mentioned in without success.

Here’s the log:

The same errors appear with 375.20 (patched).
Since April 2016 I’ve been trying to compile almost all the new versions of nvidia drivers whenever they were released with this specific kernel branch also without success.

For the ones interested in fixing this and have never worked with this branch:
set CONFIG_STACK_VALIDATION=n when building the kernel, otherwise the compilation of almost any project from source will result in error because of a bug where linking is done before the compilation itself.

Thank you.