linux/drivers/gpu/drm/amd/display/dc
Linus Torvalds 61d791365b drm/amd/display: avoid uninitialized variable warning
clang (quite rightly) complains fairly loudly about the newly added
mpc1_get_mpc_out_mux() function returning an uninitialized value if the
'opp_id' checks don't pass.

This may not happen in practice, but the code really shouldn't return
garbage if the sanity checks don't pass.

So just initialize 'val' to zero to avoid the issue.

Fixes: 110b055b28 ("drm/amd/display: add getter routine to retrieve mpcc mux")
Cc: Josip Pavic <Josip.Pavic@amd.com>
Cc: Bindu Ramamurthy <bindu.r@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-12-25 15:41:13 -08:00
..
basics drm/amd/display/dc/basics/vector: Make local function 'dal_vector_presized_costruct' static 2020-12-01 16:04:45 -05:00
bios drm/amd/display: remove macro which is in header already 2020-11-24 12:08:29 -05:00
calcs drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3) 2020-11-04 17:11:37 -05:00
clk_mgr drm/amd/display: always program DPPDTO unless not safe to lower 2020-12-23 15:02:47 -05:00
core drm/amd/display: Multi-display underflow observed 2020-12-23 15:02:18 -05:00
dce drm/amd/display: Add get_dig_frontend implementation for DCEx 2020-12-16 13:27:08 -05:00
dce60 drm/amdgpu: remove unneeded break 2020-10-23 15:33:47 -04:00
dce80 drm/amd/display: Source minimum HBlank support 2020-10-26 13:27:52 -04:00
dce100 drm/amd/display: Source minimum HBlank support 2020-10-26 13:27:52 -04:00
dce110 drm/amd/display: Check link_active instead of lane_settings != unknown 2020-12-01 16:03:27 -05:00
dce112 drm/amd/display: remove unneeded semicolon 2020-10-30 01:03:02 -04:00
dce120 drm/amd/display: HP Reverb G2 VR fails to light up 2020-12-15 11:33:39 -05:00
dcn10 drm/amd/display: avoid uninitialized variable warning 2020-12-25 15:41:13 -08:00
dcn20 drm/amd/display: add getter routine to retrieve mpcc mux 2020-12-23 15:02:55 -05:00
dcn21 drm/amd/display: Adding prototype for dccg21_update_dpp_dto() 2020-12-15 11:35:25 -05:00
dcn30 drm/amd/display: add getter routine to retrieve mpcc mux 2020-12-23 15:02:55 -05:00
dcn301 drm/amd/display: Properly define DPCS related info for DCN301 2020-12-01 16:03:52 -05:00
dcn302 drm/amd/display: Source minimum HBlank support 2020-11-24 12:07:13 -05:00
dml drm/amd/display: remove unused dml variables 2020-11-16 12:18:55 -05:00
dsc drm/amd/display: Fix compilation error 2020-11-02 15:29:33 -05:00
gpio drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3) 2020-11-04 17:11:37 -05:00
hdcp drm/amd/display: query hdcp capability during link detect 2020-04-09 10:43:17 -04:00
inc drm/amd/display: add getter routine to retrieve mpcc mux 2020-12-23 15:02:55 -05:00
irq drm/amd/display: Add missing pflip irq for dcn2.0 2020-11-13 17:29:47 -05:00
virtual drm/amd/display: Add dp_set_dsc_pps_info_packet to virtual stream encoder 2020-09-29 16:08:31 -04:00
dc_bios_types.h drm/amd/display: Add internal display info 2020-11-24 12:08:15 -05:00
dc_ddc_types.h drm/amd/display: Proper return of result when aux engine acquire fails 2019-10-25 16:50:09 -04:00
dc_dmub_srv.c drm/amd/display: implement notify stream mask 2020-09-15 17:52:41 -04:00
dc_dmub_srv.h drm/amd/display: implement notify stream mask 2020-09-15 17:52:41 -04:00
dc_dp_types.h drm/amd/display: add option to override cr training pattern 2020-09-15 17:52:40 -04:00
dc_dsc.h drm/amd/display: Add an option to limit max DSC target bpp per sink 2020-10-26 13:29:39 -04:00
dc_helper.c drm/amd/display: Decouple amdgpu_dm_trace from service 2020-10-26 13:33:59 -04:00
dc_hw_types.h drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3) 2020-11-04 17:11:37 -05:00
dc_link.h drm/amd/display: Only one display lights up while using MST hub 2020-12-08 23:04:26 -05:00
dc_stream.h drm/amd/display: turn DPMS off on connector unplug 2020-12-01 16:00:06 -05:00
dc_trace.h drm/amd/display: Add tracepoint for capturing clocks state 2020-10-26 13:34:26 -04:00
dc_types.h drm/amd/display: Add dual edp optimization flag. 2020-11-16 12:19:33 -05:00
dc.h drm/amd/display: 3.2.116 2020-12-15 11:34:57 -05:00
dm_cp_psp.h drm/amd/display: enable assr 2020-07-01 01:59:25 -04:00
dm_event_log.h
dm_helpers.h drm/amd/display: Clear dc remote sinks on MST disconnect 2020-12-01 15:59:57 -05:00
dm_pp_smu.h drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3) 2020-11-04 17:11:37 -05:00
dm_services_types.h drm/amd/display: Add definition for number of backlight data points 2019-12-18 16:09:08 -05:00
dm_services.h drm/amd/display: Decouple amdgpu_dm_trace from service 2020-10-26 13:33:59 -04:00
irq_types.h drm/amd/display: Add Vline1 interrupt source to InterruptManager 2019-01-28 11:44:10 -05:00
Makefile drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3) 2020-11-04 17:11:37 -05:00
os_types.h drm/amd/display: Clean up debug macros 2020-10-26 16:52:08 -04:00