]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbe14e86f8226f4fb609e706926b82577702ab1e2
tree458a4f7559d6ea83de5bb451db2467264fd06b49
parent4e553d2f0b373d18f233e8ff2557ba03ac4cb110
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