aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4012-drm-amd-display-Remove-set-but-not-used-variable-pix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4012-drm-amd-display-Remove-set-but-not-used-variable-pix.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4012-drm-amd-display-Remove-set-but-not-used-variable-pix.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4012-drm-amd-display-Remove-set-but-not-used-variable-pix.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4012-drm-amd-display-Remove-set-but-not-used-variable-pix.patch
new file mode 100644
index 00000000..89e7efb9
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4012-drm-amd-display-Remove-set-but-not-used-variable-pix.patch
@@ -0,0 +1,43 @@
+From dc9f973530f53aee83bb5b617f39d6008789a7a7 Mon Sep 17 00:00:00 2001
+From: zhengbin <zhengbin13@huawei.com>
+Date: Sat, 5 Oct 2019 10:44:35 +0800
+Subject: [PATCH 4012/4256] drm/amd/display: Remove set but not used variable
+ 'pixel_width'
+
+Fixes gcc '-Wunused-but-set-variable' warning:
+
+drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c: In function dpp2_get_optimal_number_of_taps:
+drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c:359:11: warning: variable pixel_width set but not used [-Wunused-but-set-variable]
+
+It is not used since commit f7de96ee8b5f ("drm/amd/display:
+Add DCN2 DPP")
+
+Reviewed-by: Harry Wentland <harry.wentland@amd.com>
+Reported-by: Hulk Robot <hulkci@huawei.com>
+Signed-off-by: zhengbin <zhengbin13@huawei.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c | 7 -------
+ 1 file changed, 7 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c
+index 2f5aade1e882..ae8534308229 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c
+@@ -376,13 +376,6 @@ bool dpp2_get_optimal_number_of_taps(
+ struct scaler_data *scl_data,
+ const struct scaling_taps *in_taps)
+ {
+- uint32_t pixel_width;
+-
+- if (scl_data->viewport.width > scl_data->recout.width)
+- pixel_width = scl_data->recout.width;
+- else
+- pixel_width = scl_data->viewport.width;
+-
+ /* Some ASICs does not support FP16 scaling, so we reject modes require this*/
+ if (scl_data->viewport.width != scl_data->h_active &&
+ scl_data->viewport.height != scl_data->v_active &&
+--
+2.17.1
+