Re: [PATCH net-next] octeontx2-af: Constify npc_kpu_profile_{action,cam}

From: David Miller
Date: Fri Sep 11 2020 - 20:14:10 EST


From: Rikard Falkeborn <rikard.falkeborn@xxxxxxxxx>
Date: Sat, 12 Sep 2020 00:00:15 +0200

> These are never modified, so constify them to allow the compiler to
> place them in read-only memory. This moves about 25kB to read-only
> memory as seen by the output of the size command.
>
> Before:
> text data bss dec hex filename
> 296203 65464 1248 362915 589a3 drivers/net/ethernet/marvell/octeontx2/af/octeontx2_af.ko
>
> After:
> text data bss dec hex filename
> 321003 40664 1248 362915 589a3 drivers/net/ethernet/marvell/octeontx2/af/octeontx2_af.ko
>
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn@xxxxxxxxx>

Applied, thank you.