diff options
author | vnctdj | 2024-03-07 23:43:12 +0100 |
---|---|---|
committer | vnctdj | 2024-03-07 23:43:12 +0100 |
commit | 377b06e2f23ec25412e2a369d815b7374e684d9a (patch) | |
tree | 6ac1ed8f8f14b6a4c80bfee8f2c87b24fd229f96 /kernel-6.8.patch | |
parent | d9a919f52ef717fdfe90209df606f0da6735dce1 (diff) | |
download | aur-nvidia-390xx-utils.tar.gz |
Add edited kernel-6.8.patch from Joan Bruguera
Diffstat (limited to 'kernel-6.8.patch')
-rw-r--r-- | kernel-6.8.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/kernel-6.8.patch b/kernel-6.8.patch new file mode 100644 index 000000000000..ed62de3e5976 --- /dev/null +++ b/kernel-6.8.patch @@ -0,0 +1,18 @@ +diff --git a/kernel/nvidia-drm/nvidia-drm-drv.c b/kernel/nvidia-drm/nvidia-drm-drv.c +index 132d4d4..1291893 100644 +--- a/kernel/nvidia-drm/nvidia-drm-drv.c ++++ b/kernel/nvidia-drm/nvidia-drm-drv.c +@@ -654,6 +654,13 @@ static const struct file_operations nv_drm_fops = { + .llseek = noop_llseek, + }; + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0) ++// Rel. commit. "drm: Remove locking for legacy ioctls and DRM_UNLOCKED" (Thomas Zimmermann, 22 Nov 2023) ++// Mock this flag, which was already useless on any recent kernel, since it ++// only did something if the driver set DRIVER_LEGACY in driver_features. ++static const enum drm_ioctl_flags DRM_UNLOCKED = 0; ++#endif ++ + static const struct drm_ioctl_desc nv_drm_ioctls[] = { + #if defined(NV_DRM_ATOMIC_MODESET_AVAILABLE) + DRM_IOCTL_DEF_DRV(NVIDIA_GEM_IMPORT_NVKMS_MEMORY, |