[PATCH] drm/amd/display: Fix warning about overflow
Harry Wentland
harry.wentland at amd.com
Thu Oct 12 17:54:42 UTC 2017
We're overflowing the last bit. Cast it explicitly
Signed-off-by: Harry Wentland <harry.wentland at amd.com>
---
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 cb94e18cc455..715dc789bb24 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
@@ -1047,7 +1047,7 @@ static enum bp_result get_embedded_panel_info_v2_1(
lvds->lcd_timing.miscinfo & ATOM_V_REPLICATIONBY2;
info->lcd_timing.misc_info.COMPOSITE_SYNC =
lvds->lcd_timing.miscinfo & ATOM_COMPOSITESYNC;
- info->lcd_timing.misc_info.INTERLACE =
+ info->lcd_timing.misc_info.INTERLACE = (uint32_t)
lvds->lcd_timing.miscinfo & ATOM_INTERLACE;
/* not provided by VBIOS*/
--
2.14.1
More information about the amd-gfx
mailing list