aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0425-drm-amdgpu-soc15-fix-warnings-in-register-macro.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0425-drm-amdgpu-soc15-fix-warnings-in-register-macro.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0425-drm-amdgpu-soc15-fix-warnings-in-register-macro.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0425-drm-amdgpu-soc15-fix-warnings-in-register-macro.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0425-drm-amdgpu-soc15-fix-warnings-in-register-macro.patch
new file mode 100644
index 00000000..b30724cd
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0425-drm-amdgpu-soc15-fix-warnings-in-register-macro.patch
@@ -0,0 +1,34 @@
+From cea3974edad5b61b39e9e727a5e537631382849c Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Wed, 26 Sep 2018 11:18:47 -0500
+Subject: [PATCH 0425/2940] drm/amdgpu/soc15: fix warnings in register macro
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+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 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+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 @@
+ 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; \
+ } \
+--
+2.17.1
+