On 11/17/25 13:16, Kees Cook wrote:
On Thu, Nov 13, 2025 at 05:33:45PM +0100, Timur Kristóf wrote:
Fixes the following warning that some users are reporting
with some kernel configurations:

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

Yes, seen with CONFIG_RANDSTRUCT=y

Thanks for the fix!

Signed-off-by: Timur Kristóf <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>


Acked-by: Kees Cook <[email protected]>


Thanks and this patch is now merged to amd-staging-drm-next, but I found it causes *some* compiler to fail.

I'd like to test whether the below change is able to fix both issues.

-static const struct stream_encoder_funcs dce110_an_str_enc_funcs = {};
+static const struct stream_encoder_funcs dce110_an_str_enc_funcs = {
+       .dp_set_stream_attribute = NULL,
+};

However, I could not reproduce ""positional initialization of field in 'struct' declared 'designated_init' attribute" in my local setup, with either gcc or clang and "CONFIG_RANDSTRUCT=y"

Can someone try the above changes for me? really appreciate it. I will create a patch if it works.

Alex Hung

Reply via email to