[PATCH v2] tee: optee: ffa: Fix missing-field-initializers warning

Jens Wiklander jens.wiklander at linaro.org
Thu Jun 27 05:52:03 PDT 2024


On Thu, Jun 27, 2024 at 8:59 AM Mark-PK Tsai <mark-pk.tsai at mediatek.com> wrote:
>
> The 'missing-field-initializers' warning was reported
> when building with W=2.
> This patch use designated initializers for
> 'struct ffa_send_direct_data' to suppress the warning
> and clarify the initialization intent.
>
> Signed-off-by: ming-jen.chang <ming-jen.chang at mediatek.com>
> Signed-off-by: Mark-PK Tsai <mark-pk.tsai at mediatek.com>
> ---
>  drivers/tee/optee/ffa_abi.c | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)

I'm picking up this.

Thanks,
Jens



More information about the Linux-mediatek mailing list