kernel-6.8.patch 842 B

12345678910111213141516171819
  1. diff --git a/kernel/nvidia-drm/nvidia-drm-drv.c b/kernel/nvidia-drm/nvidia-drm-drv.c
  2. index 132d4d4..1291893 100644
  3. --- a/kernel/nvidia-drm/nvidia-drm-drv.c
  4. +++ b/kernel/nvidia-drm/nvidia-drm-drv.c
  5. @@ -654,6 +654,13 @@ static const struct file_operations nv_drm_fops = {
  6. .llseek = noop_llseek,
  7. };
  8. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0)
  9. +// Rel. commit. "drm: Remove locking for legacy ioctls and DRM_UNLOCKED" (Thomas Zimmermann, 22 Nov 2023)
  10. +// Mock this flag, which was already useless on any recent kernel, since it
  11. +// only did something if the driver set DRIVER_LEGACY in driver_features.
  12. +static const enum drm_ioctl_flags DRM_UNLOCKED = 0;
  13. +#endif
  14. +
  15. static const struct drm_ioctl_desc nv_drm_ioctls[] = {
  16. #if defined(NV_DRM_ATOMIC_MODESET_AVAILABLE)
  17. DRM_IOCTL_DEF_DRV(NVIDIA_GEM_IMPORT_NVKMS_MEMORY,