aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2567-drm-amd-display-Fix-warning-about-overflow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2567-drm-amd-display-Fix-warning-about-overflow.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2567-drm-amd-display-Fix-warning-about-overflow.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2567-drm-amd-display-Fix-warning-about-overflow.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2567-drm-amd-display-Fix-warning-about-overflow.patch
new file mode 100644
index 00000000..3cf48f1c
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2567-drm-amd-display-Fix-warning-about-overflow.patch
@@ -0,0 +1,47 @@
+From ef2a04842331da11cb95c2e1bf1389225c2dccc0 Mon Sep 17 00:00:00 2001
+From: Harry Wentland <harry.wentland@amd.com>
+Date: Tue, 10 Oct 2017 11:23:50 -0400
+Subject: [PATCH 2567/4131] drm/amd/display: Fix warning about overflow
+
+v2: convert value to bool using !!
+
+Signed-off-by: Harry Wentland <harry.wentland@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
+index cb94e18..43e9a99 100644
+--- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
++++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
+@@ -1042,13 +1042,13 @@ static enum bp_result get_embedded_panel_info_v2_1(
+ info->lcd_timing.misc_info.VERTICAL_CUT_OFF = 0;
+
+ info->lcd_timing.misc_info.H_REPLICATION_BY2 =
+- lvds->lcd_timing.miscinfo & ATOM_H_REPLICATIONBY2;
++ !!(lvds->lcd_timing.miscinfo & ATOM_H_REPLICATIONBY2);
+ info->lcd_timing.misc_info.V_REPLICATION_BY2 =
+- lvds->lcd_timing.miscinfo & ATOM_V_REPLICATIONBY2;
++ !!(lvds->lcd_timing.miscinfo & ATOM_V_REPLICATIONBY2);
+ info->lcd_timing.misc_info.COMPOSITE_SYNC =
+- lvds->lcd_timing.miscinfo & ATOM_COMPOSITESYNC;
++ !!(lvds->lcd_timing.miscinfo & ATOM_COMPOSITESYNC);
+ info->lcd_timing.misc_info.INTERLACE =
+- lvds->lcd_timing.miscinfo & ATOM_INTERLACE;
++ !!(lvds->lcd_timing.miscinfo & ATOM_INTERLACE);
+
+ /* not provided by VBIOS*/
+ info->lcd_timing.misc_info.DOUBLE_CLOCK = 0;
+@@ -1056,7 +1056,7 @@ static enum bp_result get_embedded_panel_info_v2_1(
+ info->ss_id = 0;
+
+ info->realtek_eDPToLVDS =
+- (lvds->dplvdsrxid == eDP_TO_LVDS_REALTEK_ID ? 1:0);
++ !!(lvds->dplvdsrxid == eDP_TO_LVDS_REALTEK_ID);
+
+ return BP_RESULT_OK;
+ }
+--
+2.7.4
+