From: Alex Deucher Date: Wed, 26 Sep 2018 16:18:47 +0000 (-0500) Subject: drm/amdgpu/soc15: fix warnings in register macro X-Git-Tag: v4.20-rc1~81^2~17^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81bb773f35105f13c45b8cde1fa7cd147f9254b2;p=thirdparty%2Flinux.git 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 Reviewed-by: James Zhu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/soc15_common.h b/drivers/gpu/drm/amd/amdgpu/soc15_common.h index d35fac5b5a8a1..958b10a570731 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15_common.h +++ b/drivers/gpu/drm/amd/amdgpu/soc15_common.h @@ -57,7 +57,7 @@ loop--; \ if (!loop) { \ DRM_ERROR("Register(%d) [%s] failed to reach value 0x%08x != 0x%08x\n", \ - inst, #reg, expected_value, (tmp_ & (mask))); \ + inst, #reg, (unsigned)expected_value, (unsigned)(tmp_ & (mask))); \ ret = -ETIMEDOUT; \ break; \ } \