linux/drivers/gpu/drm/amd/display/dc
Nathan Chancellor d6d36b55a0 drm/amd/display: Use memset to initialize variable in wait_for_training_aux_rd_interval
Clang warns:

drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:50:57:
warning: suggest braces around initialization of subobject
[-Wmissing-braces]
        union training_aux_rd_interval training_rd_interval = {0};
                                                               ^
                                                               {}
1 warning generated.

Previous efforts to fix this type of warning by adding or removing
braces have been met with some pushback in favor of using memset [1][2].
Do that here, mirroring commit 05794eff1a ("drm/amdgpu/gmc: fix
compiler errors [-Werror,-Wmissing-braces] (V2)") in this tree.

[1]: https://lore.kernel.org/lkml/022e41c0-8465-dc7a-a45c-64187ecd9684@amd.com/
[2]: https://lore.kernel.org/lkml/20181128.215241.702406654469517539.davem@davemloft.net/

Fixes: 3cec41769d ("drm/amd/display: Fix use of uninitialized union")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-02-05 21:15:32 -05:00
..
basics drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00
bios drm/amd/display: Connect dig_fe to otg directly instead of calling bios 2019-01-25 16:15:37 -05:00
calcs Revert "drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines" 2019-01-29 15:16:18 -05:00
core drm/amd/display: Use memset to initialize variable in wait_for_training_aux_rd_interval 2019-02-05 21:15:32 -05:00
dce drm/amd/display: Connect dig_fe to otg directly instead of calling bios 2019-01-25 16:15:37 -05:00
dce80 drm/amd/display: fix eDP fast bootup for pre-raven asic 2019-01-25 16:15:36 -05:00
dce100 drm/amd/display: fix eDP fast bootup for pre-raven asic 2019-01-25 16:15:36 -05:00
dce110 drm/amd/display: Connect dig_fe to otg directly instead of calling bios 2019-01-25 16:15:37 -05:00
dce112 drm/amd/display: fix eDP fast bootup for pre-raven asic 2019-01-25 16:15:36 -05:00
dce120 drm/amd/display: fix eDP fast bootup for pre-raven asic 2019-01-25 16:15:36 -05:00
dcn10 drm/amd/display: Add Vline1 interrupt source to InterruptManager 2019-01-28 11:44:10 -05:00
dml Revert "drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines" 2019-01-29 15:16:18 -05:00
gpio drm/amd/display: Add DCE_VERSION_12_1 enum for Vega 20 2018-12-18 17:39:49 -05:00
inc drm/amd/display: Add Vline1 interrupt source to InterruptManager 2019-01-28 11:44:10 -05:00
irq Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86" 2018-08-21 14:32:28 -05:00
virtual drm/amd/display: Pass signal directly to enable_tmds_output 2018-03-07 16:27:20 -05:00
dc_bios_types.h drm/amd/display: Connect dig_fe to otg directly instead of calling bios 2019-01-25 16:15:37 -05:00
dc_ddc_types.h drm/amd/display: Move i2c and aux structs into dc_ddc_types.h 2018-06-15 12:23:38 -05:00
dc_dp_types.h drm/amd/display: Set link rate set if eDP ver >= 1.4. 2019-01-14 15:40:08 -05:00
dc_helper.c drm/amd/display: refactor reg_update 2019-01-14 15:38:40 -05:00
dc_hw_types.h drm/amd/display: Introduce DC VM interface 2019-01-25 16:15:36 -05:00
dc_link.h drm/amd/display: Detach backlight from stream 2019-01-14 15:04:36 -05:00
dc_stream.h drm/amd/display: Add Vline1 interrupt source to InterruptManager 2019-01-28 11:44:10 -05:00
dc_types.h drm/amd/display: Remove i2caux folder 2019-01-14 15:40:54 -05:00
dc.h drm/amd/display: 3.2.15 2019-01-25 16:15:37 -05:00
dm_event_log.h drm/amd/display: Add customizable tracing event 2018-11-30 12:02:49 -05:00
dm_helpers.h drm/amd/display: Poll pending down rep before clear payload allocation table 2019-01-28 11:43:46 -05:00
dm_pp_smu.h drm/amd/display: Add a PP_SMU_VER_MAX enum 2019-01-14 15:04:31 -05:00
dm_services_types.h drm/amd/display: change the max clock level to 16 2019-01-25 16:15:35 -05:00
dm_services.h drm/amd/display: Add tracing to dc 2018-12-05 17:49:49 -05:00
irq_types.h drm/amd/display: Add Vline1 interrupt source to InterruptManager 2019-01-28 11:44:10 -05:00
Makefile drm/amd/display: Introduce DC VM interface 2019-01-25 16:15:36 -05:00
os_types.h amd-gpu: Don't undefine READ and WRITE 2018-10-24 00:36:12 +01:00