mirror of
https://github.com/Frogging-Family/nvidia-all
synced 2024-10-30 15:20:10 +00:00
264a2e067b
Thanks to @joanbm https://gist.github.com/joanbm/2ec3c512a1ac21f5f5c6b3c1a4dbef35 https://gist.github.com/joanbm/dfe8dc59af1c83e2530a1376b77be8ba https://gist.github.com/joanbm/77f0650d45747b9a4dc8e330ade2bf5c
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
From a1879549b0bf049de790c0775c25971c82da8638 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com>
|
|
Date: Sat, 15 Jul 2023 22:26:18 +0000
|
|
Subject: [PATCH] Tentative fix for NVIDIA 470.199.02 driver for Linux 6.6-rc1
|
|
|
|
---
|
|
kernel-dkms/nvidia-drm/nvidia-drm-drv.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/kernel-dkms/nvidia-drm/nvidia-drm-drv.c b/kernel-dkms/nvidia-drm/nvidia-drm-drv.c
|
|
index b93642a..1b310f3 100644
|
|
--- a/kernel-dkms/nvidia-drm/nvidia-drm-drv.c
|
|
+++ b/kernel-dkms/nvidia-drm/nvidia-drm-drv.c
|
|
@@ -808,8 +808,12 @@ static struct drm_driver nv_drm_driver = {
|
|
.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)
|
|
+// Those functions are no longer exported, but leaving them to NULL is equivalent
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 6, 0)
|
|
.prime_handle_to_fd = drm_gem_prime_handle_to_fd,
|
|
.prime_fd_to_handle = drm_gem_prime_fd_to_handle,
|
|
+#endif
|
|
.gem_prime_import = nv_drm_gem_prime_import,
|
|
.gem_prime_import_sg_table = nv_drm_gem_prime_import_sg_table,
|
|
|
|
--
|
|
2.41.0
|
|
|