[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200911.171345.398356612906542473.davem@davemloft.net>
Date: Fri, 11 Sep 2020 17:13:45 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: rikard.falkeborn@...il.com
Cc: kuba@...nel.org, jerinj@...vell.com, gakula@...vell.com,
lcherian@...vell.com, sgoutham@...vell.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next] octeontx2-af: Constify
npc_kpu_profile_{action,cam}
From: Rikard Falkeborn <rikard.falkeborn@...il.com>
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@...il.com>
Applied, thank you.
Powered by blists - more mailing lists