diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-16 05:29:50 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-16 05:29:50 +0000 |
commit | f174ed40d3cca6ab6b3bb718e8b5fccca6b04b3f (patch) | |
tree | d5b82bd892cb75d60b0adf4c44305caa9f3fce7a /x11-drivers/nvidia-drivers/files/nvidia-drivers-525.147.05-gcc14.patch | |
parent | 02f2811de683662c5c6f5f120de6b59898ed6b98 (diff) |
gentoo auto-resync : 16:01:2024 - 05:29:50
Diffstat (limited to 'x11-drivers/nvidia-drivers/files/nvidia-drivers-525.147.05-gcc14.patch')
-rw-r--r-- | x11-drivers/nvidia-drivers/files/nvidia-drivers-525.147.05-gcc14.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/x11-drivers/nvidia-drivers/files/nvidia-drivers-525.147.05-gcc14.patch b/x11-drivers/nvidia-drivers/files/nvidia-drivers-525.147.05-gcc14.patch new file mode 100644 index 000000000000..799f80b79f7e --- /dev/null +++ b/x11-drivers/nvidia-drivers/files/nvidia-drivers-525.147.05-gcc14.patch @@ -0,0 +1,32 @@ +https://bugs.gentoo.org/921370 +https://forums.developer.nvidia.com/t/279072 +--- a/kernel/conftest.sh ++++ b/kernel/conftest.sh +@@ -4807,6 +4807,11 @@ + CODE=" + #include <drm/drm_gem.h> ++ #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 + int conftest_drm_gem_object_vmap_has_map_arg( +- struct drm_gem_object *obj, struct dma_buf_map *map) { ++ struct drm_gem_object *obj, nv_sysio_map_t *map) { + return obj->funcs->vmap(obj, map); + }" +--- a/kernel-module-source/kernel-open/conftest.sh ++++ b/kernel-module-source/kernel-open/conftest.sh +@@ -4807,6 +4807,11 @@ + CODE=" + #include <drm/drm_gem.h> ++ #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 + int conftest_drm_gem_object_vmap_has_map_arg( +- struct drm_gem_object *obj, struct dma_buf_map *map) { ++ struct drm_gem_object *obj, nv_sysio_map_t *map) { + return obj->funcs->vmap(obj, map); + }" |