Re: [PATCH] media: mali-c55: add padding to mali_c55_params_ccm structure
From: Vincenzo Frascino
Date: Thu Sep 17 2026 - 09:49:21 EST
On 16/09/2026 19:55, Arnd Bergmann wrote:
> It depends on how the structure is initialized. Depending on the compiler
> version and optimization level, a local variable declared as
>
> struct mali_c55_params_ccm v = {};
>
> may end up with uninitialized stack data in unnamed padding, but if you
> do a memset(), that should always be safe. If the fields are set individually,
> then you also have to set the __pad field, but that's not how you do it here.
Fine by me. With this:
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@xxxxxxx>
--
Regards,
Vincenzo