]> Gentwo Git Trees - linux/.git/commitdiff
drm/amd/display: Fix warning for analog stream encoders
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 13 Nov 2025 16:33:45 +0000 (17:33 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Nov 2025 15:53:00 +0000 (10:53 -0500)
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>
drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c

index f8996ee2856b45a397fcf6f60b228e4375fdbe50..574618d5d4a4e0dfc9376c7f1242bf293d505a21 100644 (file)
@@ -1568,7 +1568,7 @@ void dce110_stream_encoder_construct(
        enc110->se_mask = se_mask;
 }
 
-static const struct stream_encoder_funcs dce110_an_str_enc_funcs = {0};
+static const struct stream_encoder_funcs dce110_an_str_enc_funcs = {};
 
 void dce110_analog_stream_encoder_construct(
        struct dce110_stream_encoder *enc110,