aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules/freesync
diff options
context:
space:
mode:
authorLeo Li <[email protected]>2019-09-20 13:43:36 +0000
committerAlex Deucher <[email protected]>2019-10-11 00:33:50 +0000
commit52883b36f70ad39e58c57e7ddacad251ad02ee7f (patch)
treee497e411a0c6d4c197dc222b438283b39aae5daa /drivers/gpu/drm/amd/display/modules/freesync
parentdrm/amd/display: add more checks to validate seamless boot timing (diff)
downloadkernel-52883b36f70ad39e58c57e7ddacad251ad02ee7f.tar.gz
kernel-52883b36f70ad39e58c57e7ddacad251ad02ee7f.zip
drm/amd/display: Fix maybe-uninitialized warning
[Why] Compiling with GCC 9.1.0 gives the following warning (I have warnings-as-errors enabled): drivers/gpu/drm/amd/amdgpu/../dal-dev/dc/core/dc.c: In function 'dc_validate_seamless_boot_timing': drivers/gpu/drm/amd/amdgpu/../dal-dev/dc/core/dc.c:1180:8: error: 'se' may be used uninitialized in this function [-Werror=maybe-uninitialized] 1180 | if (!se->funcs->dp_get_pixel_format( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1181 | se, | ~~~ 1182 | &hw_crtc_timing.pixel_encoding, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1183 | &hw_crtc_timing.display_color_depth)) [How] Initialize se to NULL. Signed-off-by: Leo Li <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Acked-by: Bhawanpreet Lakha <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync')
0 files changed, 0 insertions, 0 deletions