Re: [PATCH] eth: dpaa2: constify dpaa2_ethtool_stats and dpaa2_ethtool_extras
From: Ioana Ciornei
Date: Mon May 25 2026 - 10:40:59 EST
On Sat, May 23, 2026 at 03:07:35PM +0000, Len Bao wrote:
> The 'dpaa2_ethtool_stats' and 'dpaa2_ethtool_extras' structures are
> initialized in their declarations and never changed. So, constify them
> to reduce the attack surface.
>
> Before the patch (size dpaa2-ethtool.o):
>
> text data bss dec hex
> 33433 5992 0 39425 9a01
>
> After the patch (size dpaa2-ethtool.o):
>
> text data bss dec hex
> 34937 4488 0 39425 9a01
>
> Signed-off-by: Len Bao <len.bao@xxxxxx>
Reviewed-by: Ioana Ciornei <ioana.ciornei@xxxxxxx>
Next time, please mention the target tree name in the subject prefix. In
this case, it would have been net-next.