drm/amdgpu: add warning to amdgpu_bo_gpu_offset() v2
authorChristian König <christian.koenig@amd.com>
Tue, 15 Dec 2015 10:10:30 +0000 (11:10 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Jan 2016 20:39:28 +0000 (15:39 -0500)
commit191caba6cc4c95ba282304a10a2a9cba85450317
tree9b53df1e91c67a619bcb74c86283fdf8e82c99c0
parent4d42fa492eb80aed28d2237efaee004453579556
drm/amdgpu: add warning to amdgpu_bo_gpu_offset() v2

Check if there really is a valid offset for the BO.

v2: user WARN_ON_ONCE

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h