Created attachment 468860 [details, diff] patch will let you build nvidia-drivers-378.13 on vanilla linux kernel 4.10.8 Kernel version 4.10.8 no longer has include/linux/fence.h, but dma-fence.h So, functions like fence_init(), fence_get(), and so on have been renamed to dma_fence_* struct fence has been renamed to struct dma_fence as well Put the attached patch to /etc/portage/patches/x11-drivers/nvidia-drivers-378.13 and emerge nvidia-drivers
The patch you attached is incomplete. Try this one: https://gist.githubusercontent.com/tpruzina/c4d9c0ca6bdbb6e78ab2126a7cdf8f1c/raw/38ccd3224f3205e45982c0c217e23d04f9681b49/gistfile1.txt
*** This bug has been marked as a duplicate of bug 610058 ***