]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
Merge tag 'rpmsg-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/andersson...
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_ctx.c
index c80d8339f58c4726999de96a0b4a53b422efa156..0350205c48974e0dfafd81c2f14b365ebbff7e91 100644 (file)
@@ -100,7 +100,7 @@ static int amdgpu_ctx_init_entity(struct amdgpu_ctx *ctx, u32 hw_ip,
        enum drm_sched_priority priority;
        int r;
 
-       entity = kcalloc(1, offsetof(typeof(*entity), fences[amdgpu_sched_jobs]),
+       entity = kzalloc(struct_size(entity, fences, amdgpu_sched_jobs),
                         GFP_KERNEL);
        if (!entity)
                return  -ENOMEM;
@@ -450,7 +450,7 @@ int amdgpu_ctx_put(struct amdgpu_ctx *ctx)
 
 void amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx,
                          struct drm_sched_entity *entity,
-                         struct dma_fence *fence, uint64_thandle)
+                         struct dma_fence *fence, uint64_t *handle)
 {
        struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity);
        uint64_t seq = centity->sequence;
This page took 0.033196 seconds and 4 git commands to generate.