aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
index 987b7f256463..f9b54236102d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
@@ -434,9 +434,9 @@ int amdgpu_ctx_put(struct amdgpu_ctx *ctx)
434 return 0; 434 return 0;
435} 435}
436 436
437int amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx, 437void amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx,
438 struct drm_sched_entity *entity, 438 struct drm_sched_entity *entity,
439 struct dma_fence *fence, uint64_t* handle) 439 struct dma_fence *fence, uint64_t* handle)
440{ 440{
441 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); 441 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity);
442 uint64_t seq = centity->sequence; 442 uint64_t seq = centity->sequence;
@@ -458,8 +458,6 @@ int amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx,
458 dma_fence_put(other); 458 dma_fence_put(other);
459 if (handle) 459 if (handle)
460 *handle = seq; 460 *handle = seq;
461
462 return 0;
463} 461}
464 462
465struct dma_fence *amdgpu_ctx_get_fence(struct amdgpu_ctx *ctx, 463struct dma_fence *amdgpu_ctx_get_fence(struct amdgpu_ctx *ctx,