]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix compliler errors [-Werror,-Wmissing-braces]
authorShirish S <shirish.s@amd.com>
Thu, 20 Dec 2018 10:38:02 +0000 (16:08 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:45 +0000 (15:04 -0500)
commitff87b718b9b4a5a4ebe108eaf274655eea2f95d6
treeb4c204a633310ad0a050498c6c20bd9dc65c6d5b
parent37581482fccc3557343f2fa030cdb9af94f320ab
drm/amd/display: fix compliler errors [-Werror,-Wmissing-braces]

Initializing structures with { } is known to be problematic since
it doesn't necessararily initialize all bytes, in case of padding,
causing random failures when structures are memcmp().

This patch fixes the structure initialisation related compiler
error by memset.

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c