linux/drivers/gpu/drm/amd/display/dc
Leo Li 52883b36f7 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 <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-10-10 19:33:50 -05:00
..
basics drm/amd: drop use of drmp.h in os_types.h 2019-06-10 22:59:45 +02:00
bios drm/amd/display: Handle Renoir in DC 2019-08-29 15:52:33 -05:00
calcs drm/amd/display: Implement voltage limitation for dali 2019-09-16 10:06:48 -05:00
clk_mgr drm/amd/display: add guard for SMU ver, for 48mhz clk 2019-10-10 19:33:23 -05:00
core drm/amd/display: Fix maybe-uninitialized warning 2019-10-10 19:33:50 -05:00
dce drm/amd/display: wait for set pipe mcp command completion 2019-10-10 19:32:32 -05:00
dce80 drm/amd/display: memory leak 2019-10-03 09:11:06 -05:00
dce100 drm/amd/display: memory leak 2019-10-03 09:11:06 -05:00
dce110 drm/amd/display: exit PSR during detection 2019-10-10 19:33:07 -05:00
dce112 drm/amd/display: memory leak 2019-10-03 09:11:06 -05:00
dce120 drm/amd/display: memory leak 2019-10-03 09:11:06 -05:00
dcn10 drm/amd/display: add more checks to validate seamless boot timing 2019-10-10 19:33:44 -05:00
dcn20 drm/amd/display: add more checks to validate seamless boot timing 2019-10-10 19:33:44 -05:00
dcn21 drm/amd/display: Update number of dcn21 audio endpoints 2019-10-10 19:33:30 -05:00
dml drm/amd/display: Add output bitrate to DML calculations 2019-10-10 19:32:24 -05:00
dsc drm/amd/display: Remove set but not used variable 'source_bpp' 2019-10-07 15:10:34 -05:00
gpio drm/amd/display: remove hw access from dc_destroy 2019-09-13 18:02:52 -05:00
hdcp drm/amd/display: Add HDCP module 2019-10-03 09:10:58 -05:00
inc drm/amd/display: add more checks to validate seamless boot timing 2019-10-10 19:33:44 -05:00
irq drm/amd/display: Add Renoir irq_services (v2) 2019-08-29 15:52:33 -05:00
virtual drm/amd/display: reset hdmi tmds rate and data scramble on pipe reset 2019-08-15 10:52:59 -05:00
dc.h drm/amd/display: 3.2.53 2019-10-10 19:32:54 -05:00
dc_bios_types.h drm/amd/display: make firmware info only load once during dc_bios create 2019-08-15 10:53:36 -05:00
dc_ddc_types.h drm/amd/display: add i2c over aux failure handling 2019-03-19 15:36:49 -05:00
dc_dp_types.h drm/amd/display: Synchronous DisplayPort Link Training 2019-08-15 10:53:30 -05:00
dc_dsc.h drm/amd/display: Isolate DSC module from driver dependencies 2019-09-13 18:03:13 -05:00
dc_helper.c drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
dc_hw_types.h drm/amd/display: Added pixel dynamic expansion control. 2019-10-10 19:24:26 -05:00
dc_link.h drm/amd/display: exit PSR during detection 2019-10-10 19:33:07 -05:00
dc_stream.h drm/amd/display: Added pixel dynamic expansion control. 2019-10-10 19:24:26 -05:00
dc_types.h drm/amd/display: Update hdcp display config 2019-10-03 09:10:58 -05:00
dm_cp_psp.h drm/amd/display: Update hdcp display config 2019-10-03 09:10:58 -05:00
dm_event_log.h
dm_helpers.h drm/amd/display: Don't allocate payloads if link lost 2019-09-13 17:55:01 -05:00
dm_pp_smu.h drm/amd/display: Add pp_smu functions for Renoir 2019-08-29 15:52:33 -05:00
dm_services.h drm/amd/display: refactor dump_clk_registers 2019-07-18 14:18:09 -05:00
dm_services_types.h
irq_types.h
Makefile drm/amd/display: Add HDCP module 2019-10-03 09:10:58 -05:00
os_types.h drm/amd: drop use of drmp.h in os_types.h 2019-06-10 22:59:45 +02:00