Re: [PATCH] llc: Constify struct llc_sap_state_trans

From: Simon Horman
Date: Mon Jul 15 2024 - 04:29:34 EST


+ Iwashima-san

On Sun, Jul 14, 2024 at 06:15:20PM +0200, Christophe JAILLET wrote:
> 'struct llc_sap_state_trans' are not modified in this driver.
>
> Constifying this structure moves some data to a read-only section, so
> increase overall security.
>
> On a x86_64, with allmodconfig, as an example:
> Before:
> ======
> text data bss dec hex filename
> 339 456 24 819 333 net/llc/llc_s_st.o
>
> After:
> =====
> text data bss dec hex filename
> 683 144 0 827 33b net/llc/llc_s_st.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
> ---
> Compile tested-only.

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>