Re: [Patch v2] drm/amdgpu: Avoid direct cast to amdgpu_ttm_tt

2022-08-09 Thread Christian König
Am 27.07.22 um 21:51 schrieb Rajneesh Bhardwaj: For typesafety, use container_of() instead of implicit cast from struct ttm_tt to struct amdgpu_ttm_tt. Cc: Christian König Signed-off-by: Rajneesh Bhardwaj Reviewed-by: Christian König --- Changes in v2: * Fixed a bug that Felix pointed o

[Patch v2] drm/amdgpu: Avoid direct cast to amdgpu_ttm_tt

2022-07-27 Thread Rajneesh Bhardwaj
For typesafety, use container_of() instead of implicit cast from struct ttm_tt to struct amdgpu_ttm_tt. Cc: Christian König Signed-off-by: Rajneesh Bhardwaj --- Changes in v2: * Fixed a bug that Felix pointed out in V1 by updating the macro definition drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.