summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/nvidia-drm-515-kmod/files/patch-nvidia-drm-gem.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/nvidia-drm-515-kmod/files/patch-nvidia-drm-gem.c b/graphics/nvidia-drm-515-kmod/files/patch-nvidia-drm-gem.c
new file mode 100644
index 000000000000..5693b76d27c4
--- /dev/null
+++ b/graphics/nvidia-drm-515-kmod/files/patch-nvidia-drm-gem.c
@@ -0,0 +1,18 @@
+--- nvidia-drm-gem.c.orig 2023-12-29 19:08:23 UTC
++++ nvidia-drm-gem.c
+@@ -68,15 +68,7 @@ void nv_drm_gem_free(struct drm_gem_object *gem)
+ #if !defined(NV_DRM_DRIVER_HAS_GEM_PRIME_CALLBACKS) && \
+ defined(NV_DRM_GEM_OBJECT_VMAP_HAS_MAP_ARG)
+
+-/*
+- * The 'dma_buf_map' structure is renamed to 'iosys_map' by the commit
+- * 7938f4218168 ("dma-buf-map: Rename to iosys-map").
+- */
+-#if defined(NV_LINUX_IOSYS_MAP_H_PRESENT)
+-typedef struct iosys_map nv_sysio_map_t;
+-#else
+ typedef struct dma_buf_map nv_sysio_map_t;
+-#endif
+
+ static int nv_drm_gem_vmap(struct drm_gem_object *gem,
+ nv_sysio_map_t *map)