summarylogtreecommitdiffstats
path: root/gcc-14.patch
blob: 6f032c72317ffc1fc236306154eba56dd409c5cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
https://forums.developer.nvidia.com/t/nvidia-modules-build-failure-with-upcoming-gcc-14-and-recent-kernels-due-to-misfiring-conftest-sh-test-heads-up/279072

--- a/conftest.sh
+++ b/conftest.sh
@@ -5071,6 +5071,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);
             }"