Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/ttm: remove unused paramter

remove the unsed the paramter in the function
ttm_bo_bounce_temp_buffer and ttm_bo_add_move_fence.
V2:rebase the patch on top of drm-misc-next (Christian)

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240401030443.3384494-1-jesse.zhang@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>

authored by

Jesse Zhang and committed by
Christian König
ba42ecb5 a6020c43

+3 -5
+3 -5
drivers/gpu/drm/ttm/ttm_bo.c
··· 402 402 EXPORT_SYMBOL(ttm_bo_put); 403 403 404 404 static int ttm_bo_bounce_temp_buffer(struct ttm_buffer_object *bo, 405 - struct ttm_resource **mem, 406 405 struct ttm_operation_ctx *ctx, 407 406 struct ttm_place *hop) 408 407 { ··· 468 469 if (ret != -EMULTIHOP) 469 470 break; 470 471 471 - ret = ttm_bo_bounce_temp_buffer(bo, &evict_mem, ctx, &hop); 472 + ret = ttm_bo_bounce_temp_buffer(bo, ctx, &hop); 472 473 } while (!ret); 473 474 474 475 if (ret) { ··· 697 698 */ 698 699 static int ttm_bo_add_move_fence(struct ttm_buffer_object *bo, 699 700 struct ttm_resource_manager *man, 700 - struct ttm_resource *mem, 701 701 bool no_wait_gpu) 702 702 { 703 703 struct dma_fence *fence; ··· 785 787 if (ret) 786 788 continue; 787 789 788 - ret = ttm_bo_add_move_fence(bo, man, *res, ctx->no_wait_gpu); 790 + ret = ttm_bo_add_move_fence(bo, man, ctx->no_wait_gpu); 789 791 if (unlikely(ret)) { 790 792 ttm_resource_free(bo, res); 791 793 if (ret == -EBUSY) ··· 892 894 bounce: 893 895 ret = ttm_bo_handle_move_mem(bo, res, false, ctx, &hop); 894 896 if (ret == -EMULTIHOP) { 895 - ret = ttm_bo_bounce_temp_buffer(bo, &res, ctx, &hop); 897 + ret = ttm_bo_bounce_temp_buffer(bo, ctx, &hop); 896 898 /* try and move to final place now. */ 897 899 if (!ret) 898 900 goto bounce;