Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:X0F:HSF:Kernel
x11-video-nvidia-legacy
kernel-4.11.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kernel-4.11.patch of Package x11-video-nvidia-legacy
--- a/kernel/nv-drm.c +++ b/kernel/nv-drm.c @@ -22,6 +22,8 @@ #include <drm/drm_gem.h> #endif +#include <linux/version.h> + extern nv_linux_state_t *nv_linux_devices; static int nv_drm_load( @@ -42,7 +44,11 @@ return -ENODEV; } +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) static int nv_drm_unload( +#else +static void nv_drm_unload( +#endif struct drm_device *dev ) { @@ -52,11 +58,19 @@ { if (nvl->dev == dev->pdev) { +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) return 0; +#else + return; +#endif } } +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) return -ENODEV; +#else + return; +#endif } static const struct file_operations nv_drm_fops = {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor