nvidia-merged/nvidia-conftest-iosys-fix.patch
Lily Tsuru 7108916b9e initial working tree
a bit messy, but it works without me having to play around with it now.
2024-09-29 22:10:55 -04:00

16 lines
610 B
Diff

--- a/kernel/conftest.sh
+++ b/kernel/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);
}"