/home/user/XE_0407/kernel/drivers/gpu/drm/drm_gem_vram_helper.c: In function ‘drm_gem_vram_create’:
/home/user/XE_0407/kernel/drivers/gpu/drm/drm_gem_vram_helper.c:230:6: error: incompatible type for argument 5 of ‘ttm_bo_init’
230 | &gbo->placement, pg_align, false, NULL, NULL,
| ^~~~~~~~~~~~~~~
| |
| struct ttm_placement *
In file included from /home/user/XE_0407/kernel/include/drm/drm_gem_ttm_helper.h:10,
from /home/user/XE_0407/kernel/drivers/gpu/drm/drm_gem_vram_helper.c:13:
/home/user/XE_0407/kernel/include/drm/ttm/ttm_bo_api.h:407:23: note: expected ‘enum dma_resv_usage’ but argument is of type ‘struct ttm_placement *’
407 | enum dma_resv_usage wait_usage,
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/home/user/XE_0407/kernel/drivers/gpu/drm/drm_gem_vram_helper.c:230:23: warning: passing argument 6 of ‘ttm_bo_init’ makes pointer from integer without a cast [-Wint-conversion]
230 | &gbo->placement, pg_align, false, NULL, NULL,
| ^~~~~~~~
| |
| long unsigned int
In file included from /home/user/XE_0407/kernel/include/drm/drm_gem_ttm_helper.h:10,
from /home/user/XE_0407/kernel/drivers/gpu/drm/drm_gem_vram_helper.c:13:
/home/user/XE_0407/kernel/include/drm/ttm/ttm_bo_api.h:408:25: note: expected ‘struct ttm_placement *’ but argument is of type ‘long unsigned int’
408 | struct ttm_placement *placement,
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/user/XE_0407/kernel/drivers/gpu/drm/drm_gem_vram_helper.c:231:6: error: passing argument 10 of ‘ttm_bo_init’ from incompatible pointer type [-Werror=incompatible-pointer-types]
231 | ttm_buffer_object_destroy);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(struct ttm_buffer_object *)
In file included from /home/user/XE_0407/kernel/include/drm/drm_gem_ttm_helper.h:10,
from /home/user/XE_0407/kernel/drivers/gpu/drm/drm_gem_vram_helper.c:13:
/home/user/XE_0407/kernel/include/drm/ttm/ttm_bo_api.h:410:41: note: expected ‘struct dma_resv *’ but argument is of type ‘void (*)(struct ttm_buffer_object *)’
410 | struct sg_table *sg, struct dma_resv *resv,
| ~~~~~~~~~~~~~~~~~^~~~
/home/user/XE_0407/kernel/drivers/gpu/drm/drm_gem_vram_helper.c:229:8: error: too few arguments to function ‘ttm_bo_init’
229 | ret = ttm_bo_init(bdev, &gbo->bo, size, ttm_bo_type_device,
| ^~~~~~~~~~~
In file included from /home/user/XE_0407/kernel/include/drm/drm_gem_ttm_helper.h:10,
from /home/user/XE_0407/kernel/drivers/gpu/drm/drm_gem_vram_helper.c:13:
/home/user/XE_0407/kernel/include/drm/ttm/ttm_bo_api.h:405:5: note: declared here
405 | int ttm_bo_init(struct ttm_device *bdev, struct ttm_buffer_object *bo,
| ^~~~~~~~~~~
cc1: some warnings being treated as errors