On Thu, 2025-10-30 at 13:20 -0400, Valdis Klētnieks wrote:
> Hit this error while building next-20251029 with W=1 and gcc (GCC)
> 15.2.1 20251022 (Red Hat 15.2.1-3
Hi,
Can you say how to reproduce that?
I use the same version of GCC but it hasn't given me any warning or
error for that patch.
Thanks & best regards,
Timur
>
> CC [M]
> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.o
> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c:157
> 1:69: error: positional initialization of field in 'struct' declared
> with 'designated_init' attribute [-Werror=designated-init]
> 1571 | static const struct stream_encoder_funcs
> dce110_an_str_enc_funcs = {0};
>
> |
> ^
> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c:157
> 1:69: note: (near initialization for 'dce110_an_str_enc_funcs')
> cc1: some warnings being treated as errors
>
> Caused by:
> commit deb072d241c906ae378bc88ff91dfcdc34ebe71a
> Author: Timur Krist?f <[email protected]>
> Date: Fri Sep 26 20:01:51 2025 +0200
>
> drm/amd/display: Implement DCE analog stream encoders
>
>
> > > > > > > > >