Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 614406

Summary: x11-drivers/nvidia-drivers-378.13 won't build on linux-4.10.8: linux/fence.h / struct fence missing
Product: Gentoo Linux Reporter: Felix J. Ogris <fjo-gentoo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: markus.knetschke, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch will let you build nvidia-drivers-378.13 on vanilla linux kernel 4.10.8

Description Felix J. Ogris 2017-04-01 10:47:53 UTC
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
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-04-08 07:32:15 UTC

*** This bug has been marked as a duplicate of bug 610058 ***