diff options
| author | Junwei Zhang <[email protected]> | 2015-09-09 01:21:19 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2015-09-23 21:23:36 +0000 |
| commit | a6db8a33e164ae72fb5429ab637e8cfee057a722 (patch) | |
| tree | 364add4fa33036b3de4242f0139b998c757c7733 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | drm/amdgpu: refine the job naming for amdgpu_job and amdgpu_sched_job (diff) | |
| download | kernel-a6db8a33e164ae72fb5429ab637e8cfee057a722.tar.gz kernel-a6db8a33e164ae72fb5429ab637e8cfee057a722.zip | |
drm/amdgpu: refine the scheduler job type conversion
Use container_of rather than casting.
Reviewed-by: Christian König <[email protected]>
Reviewed-by: David Zhou <[email protected]>
Signed-off-by: Junwei Zhang <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 4c1698861c42..546968a83b08 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -863,7 +863,7 @@ int amdgpu_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp) job->free_job = amdgpu_cs_free_job; mutex_lock(&job->job_lock); - r = amd_sched_entity_push_job((struct amd_sched_job *)job); + r = amd_sched_entity_push_job(&job->base); if (r) { mutex_unlock(&job->job_lock); amdgpu_cs_free_job(job); |
