aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2018-09-26 12:18:47 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-09-26 22:09:26 -0400
commit81bb773f35105f13c45b8cde1fa7cd147f9254b2 (patch)
treebb9a96afcc9a61e7cbedb363f69f6f5b8fa8ecf9 /drivers/gpu/drm/amd/amdgpu
parenta3716d3a06ac740a3df081d61da3df7f2189f5ac (diff)
drm/amdgpu/soc15: fix warnings in register macro
expects argument of type ‘unsigned int’ has type ‘long int’ Fixes: 52e211c1f04 ("drm/amdgpu:Add error message when register failed to reach expected value") Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: James Zhu <James.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc15_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15_common.h b/drivers/gpu/drm/amd/amdgpu/soc15_common.h
index d35fac5b5a8a..958b10a57073 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15_common.h
+++ b/drivers/gpu/drm/amd/amdgpu/soc15_common.h
@@ -57,7 +57,7 @@
57 loop--; \ 57 loop--; \
58 if (!loop) { \ 58 if (!loop) { \
59 DRM_ERROR("Register(%d) [%s] failed to reach value 0x%08x != 0x%08x\n", \ 59 DRM_ERROR("Register(%d) [%s] failed to reach value 0x%08x != 0x%08x\n", \
60 inst, #reg, expected_value, (tmp_ & (mask))); \ 60 inst, #reg, (unsigned)expected_value, (unsigned)(tmp_ & (mask))); \
61 ret = -ETIMEDOUT; \ 61 ret = -ETIMEDOUT; \
62 break; \ 62 break; \
63 } \ 63 } \