]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu/soc15: fix warnings in register macro
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Sep 2018 16:18:47 +0000 (11:18 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Sep 2018 02:09:26 +0000 (21:09 -0500)
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>
drivers/gpu/drm/amd/amdgpu/soc15_common.h

index d35fac5b5a8a19c39f03dc4d10dcc4228ff176c2..958b10a570731c422972967923f5b96276d8be00 100644 (file)
@@ -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;                          \
                        }                                       \