Bug 1631020

Summary: Can't build kernel module nvidia akmod-nvidia-390.48-1.fc28 @rpmfusion-nonfree for kernel 4.18.7-200.fc28
Product: [Fedora] Fedora Reporter: cedbor <cedric.bortolussi>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: airlied, bskeggs, ewk, hdegoede, ichavero, itamar, jarodwilson, jglisse, john.j5live, jonathan, josef, kernel-maint, labbott, linville, mchehab, mjg59, steved
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-20 00:55:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
akmods failed build log none

Description cedbor 2018-09-19 18:33:41 UTC
Created attachment 1484901 [details]
akmods failed build log

Description of problem:
When trying to compile nvidia kernel module version 390.48, compilation fails with kernel 4.18.7, not with 4.17.19

Version-Release number of selected component (if applicable): 
kernel 4.18.7-200.fc28 
Nvidia 390.48 (from rpmfusion non-free)


How reproducible:
Steps to Reproduce:
1.Install akmod-nvidia.3:390.48 under kernel 4.18
2.compile kernel module (in my case with akmods)
3.

Actual results : fails to build with error
In file included from ./include/drm/drmP.h:82,
from /tmp/akmodsbuild.mM98e5ER/BUILD/nvidia-kmod-390.48/_kmod_build_4.18.7-200.fc28.x86_64/nvidia-drm/nvidia-drm-priv.h:30,
from /tmp/akmodsbuild.mM98e5ER/BUILD/nvidia-kmod-390.48/_kmod_build_4.18.7-200.fc28.x86_64/nvidia-drm/nvidia-drm-drv.c:25:
/tmp/akmodsbuild.mM98e5ER/BUILD/nvidia-kmod-390.48/_kmod_build_4.18.7-200.fc28.x86_64/nvidia-drm/nvidia-drm-drv.c:637:23: error: 'DRM_CONTROL_ALLOW' undeclared here (not in a function); did you mean 'DRM_RENDER_ALLOW'?
DRM_CONTROL_ALLOW|DRM_UNLOCKED),

Expected results:
a kernel module! 

Additional info:
https://devtalk.nvidia.com/default/topic/1036869/linux/driver-390-67-not-compiling-in-kernel-4-18-rc2/

My workaround is to use kernel 4.17.19-200.fc28. Build works with it, although it seems to be a nvidia problem.

Comment 1 Laura Abbott 2018-09-20 00:55:18 UTC
Fedora can't support or fix the nVidia module, this needs to be fixed by the nVidia developers.