aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1216-drm-amdgpu-display-fix-compiler-errors-Werror-Wparen.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1216-drm-amdgpu-display-fix-compiler-errors-Werror-Wparen.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1216-drm-amdgpu-display-fix-compiler-errors-Werror-Wparen.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1216-drm-amdgpu-display-fix-compiler-errors-Werror-Wparen.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1216-drm-amdgpu-display-fix-compiler-errors-Werror-Wparen.patch
new file mode 100644
index 00000000..cb6bfe6e
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1216-drm-amdgpu-display-fix-compiler-errors-Werror-Wparen.patch
@@ -0,0 +1,31 @@
+From 5c7946eebc885258da19e727ddd223ffddf44736 Mon Sep 17 00:00:00 2001
+From: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
+Date: Mon, 31 Dec 2018 13:42:53 +0530
+Subject: [PATCH 1216/2940] drm/amdgpu/display: fix compiler errors
+ [-Werror,-Wparentheses-equality]
+
+Remove extraneous parentheses around the comparison
+to silence this warning
+
+Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
+Reviewed-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c
+index 7d102ac0d61b..1ef0074302c5 100644
+--- a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c
++++ b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c
+@@ -63,7 +63,7 @@ void scaler_settings_calculation(struct dcn_bw_internal_vars *v)
+ if (v->interlace_output[k] == 1.0) {
+ v->v_ratio[k] = 2.0 * v->v_ratio[k];
+ }
+- if ((v->underscan_output[k] == 1.0)) {
++ if (v->underscan_output[k] == 1.0) {
+ v->h_ratio[k] = v->h_ratio[k] * v->under_scan_factor;
+ v->v_ratio[k] = v->v_ratio[k] * v->under_scan_factor;
+ }
+--
+2.17.1
+