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

From: Rikard Falkeborn
Date: Mon Sep 14 2020 - 16:53:06 EST


On Sun, Sep 13, 2020 at 10:27:01PM -0700, Joe Perches wrote:
> On Sat, 2020-09-12 at 00:00 +0200, Rikard Falkeborn wrote:
> > 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.
>
> Nice.
>
> Did you find this by tool or inspection?
>
>

Inspection, aided by some semi-clever greping.