summaryrefslogtreecommitdiffstats
path: root/system/nvidia-legacy390-kernel/patches/kernel-6.6.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/nvidia-legacy390-kernel/patches/kernel-6.6.patch')
-rw-r--r--system/nvidia-legacy390-kernel/patches/kernel-6.6.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/system/nvidia-legacy390-kernel/patches/kernel-6.6.patch b/system/nvidia-legacy390-kernel/patches/kernel-6.6.patch
new file mode 100644
index 0000000000..8f246b9888
--- /dev/null
+++ b/system/nvidia-legacy390-kernel/patches/kernel-6.6.patch
@@ -0,0 +1,16 @@
+diff --ignore-space-change --unified --recursive --no-dereference a/nvidia-drm/nvidia-drm-drv.c b/nvidia-drm/nvidia-drm-drv.c
+--- a/nvidia-drm/nvidia-drm-drv.c
++++ b/nvidia-drm/nvidia-drm-drv.c
+@@ -700,8 +700,11 @@
+
+ .ioctls = nv_drm_ioctls,
+ .num_ioctls = ARRAY_SIZE(nv_drm_ioctls),
+-
++// Rel. commit "drm/prime: Unexport helpers for fd/handle conversion" (Thomas Zimmermann, 20 Jun 2023)
++// This function is no longer exported, but leaving it to NULL is equivalent
++#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 6, 0)
+ .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
++#endif
+
+ #if defined(NV_DRM_DRIVER_HAS_GEM_PRIME_CALLBACKS)
+ .gem_prime_export = nv_drm_gem_prime_export,