Re: [PATCH] ASoC: renesas: fsi: Constify struct fsi_stream_handler

From: Kuninori Morimoto

Date: Sun Oct 26 2025 - 20:08:06 EST



Hi

> 'struct fsi_stream_handler' is not modified in this driver.
>
> Constifying this structure moves some data to a read-only section, so
> increases overall security, especially when the structure holds some
> function pointers.
>
> On a x86_64, with allmodconfig:
> Before:
> ======
> text data bss dec hex filename
> 51837 12312 64 64213 fad5 sound/soc/renesas/fsi.o
>
> After:
> =====
> text data bss dec hex filename
> 52125 12024 64 64213 fad5 sound/soc/renesas/fsi.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
> ---

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>

Thank you for your help !!

Best regards
---
Kuninori Morimoto