aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1726-drm-amdgpu-smu11-fix-warning-on-32bit-arches.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1726-drm-amdgpu-smu11-fix-warning-on-32bit-arches.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1726-drm-amdgpu-smu11-fix-warning-on-32bit-arches.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1726-drm-amdgpu-smu11-fix-warning-on-32bit-arches.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1726-drm-amdgpu-smu11-fix-warning-on-32bit-arches.patch
new file mode 100644
index 00000000..a4c81e4a
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1726-drm-amdgpu-smu11-fix-warning-on-32bit-arches.patch
@@ -0,0 +1,32 @@
+From de2bf35aa8edd130e6176b265c7bd5a7de9ee197 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Fri, 29 Mar 2019 14:14:10 -0500
+Subject: [PATCH 1726/2940] drm/amdgpu/smu11: fix warning on 32bit arches
+
+Fixes
+warning: cast from pointer to integer of different size
+[-Wpointer-to-int-cast]
+on 32 bit platforms.
+
+Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
+index 9d75911ce674..0e4b4b88af24 100644
+--- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
++++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
+@@ -527,7 +527,7 @@ static int smu_v11_0_notify_memory_pool_location(struct smu_context *smu)
+ if (memory_pool->size == 0 || memory_pool->cpu_addr == NULL)
+ return ret;
+
+- address = (uint64_t)memory_pool->cpu_addr;
++ address = (uintptr_t)memory_pool->cpu_addr;
+ address_high = (uint32_t)upper_32_bits(address);
+ address_low = (uint32_t)lower_32_bits(address);
+
+--
+2.17.1
+