aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3778-drm-amd-pp-remove-redundant-pointer-internal_buf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3778-drm-amd-pp-remove-redundant-pointer-internal_buf.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3778-drm-amd-pp-remove-redundant-pointer-internal_buf.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3778-drm-amd-pp-remove-redundant-pointer-internal_buf.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3778-drm-amd-pp-remove-redundant-pointer-internal_buf.patch
new file mode 100644
index 00000000..3d8ef938
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3778-drm-amd-pp-remove-redundant-pointer-internal_buf.patch
@@ -0,0 +1,42 @@
+From c61a4935c1dc1feeb7166a52fc971ce6fceb2eb3 Mon Sep 17 00:00:00 2001
+From: Colin Ian King <colin.king@canonical.com>
+Date: Tue, 13 Mar 2018 13:22:17 +0000
+Subject: [PATCH 3778/4131] drm/amd/pp: remove redundant pointer internal_buf
+
+The pointer internal_buf is assigned a value but the pointer is never
+read, hence it is redundant and can be removed.
+
+Cleans up clang warning:
+drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/smu7_smumgr.c:630:2:
+warning: Value stored to 'internal_buf' is never read
+
+Change-Id: Iec5de64ae400cab1601c1346f5213565cd6d0e91
+Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
+Signed-off-by: Colin Ian King <colin.king@canonical.com>
+---
+ drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c
+index 7394bb4..dcb151c 100644
+--- a/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c
++++ b/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c
+@@ -585,7 +585,6 @@ int smu7_setup_pwr_virus(struct pp_hwmgr *hwmgr)
+ int smu7_init(struct pp_hwmgr *hwmgr)
+ {
+ struct smu7_smumgr *smu_data;
+- uint8_t *internal_buf;
+ uint64_t mc_addr = 0;
+ int r;
+ /* Allocate memory for backend private data */
+@@ -627,7 +626,6 @@ int smu7_init(struct pp_hwmgr *hwmgr)
+ &smu_data->header_buffer.kaddr);
+ return -EINVAL;
+ }
+- internal_buf = smu_data->smu_buffer.kaddr;
+ smu_data->smu_buffer.mc_addr = mc_addr;
+
+ if (smum_is_hw_avfs_present(hwmgr))
+--
+2.7.4
+