octeontx2-af: Constify npc_kpu_profile_{action,cam}
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Fri, 11 Sep 2020 22:00:15 +0000 (00:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Sep 2020 00:13:24 +0000 (17:13 -0700)
commit4a681bf3456fe0c53851646ffe2229145f2b6159
tree458a4f7559d6ea83de5bb451db2467264fd06b49
parentcac7663cdce74eb6ee678f6dd0dc7ee4a251fa91
octeontx2-af: Constify npc_kpu_profile_{action,cam}

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@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/npc.h
drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c