Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Fix warning for analog stream encoders

Fixes the following warning that some users are reporting
with some kernel configurations:

"positional initialization of field in 'struct' declared
with 'designated_init' attribute"

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Kees Cook <kees@kernel.org>
Link: https://lore.kernel.org/r/20251113163348.137315-2-timur.kristof@gmail.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Timur Kristóf and committed by
Alex Deucher
b9f55e04 527ba26e

+1 -1
+1 -1
drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c
··· 1568 1568 enc110->se_mask = se_mask; 1569 1569 } 1570 1570 1571 - static const struct stream_encoder_funcs dce110_an_str_enc_funcs = {0}; 1571 + static const struct stream_encoder_funcs dce110_an_str_enc_funcs = {}; 1572 1572 1573 1573 void dce110_analog_stream_encoder_construct( 1574 1574 struct dce110_stream_encoder *enc110,