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>
parent
cac7663c
No related branches found
No related tags found
Showing
- drivers/net/ethernet/marvell/octeontx2/af/npc.h 2 additions, 2 deletionsdrivers/net/ethernet/marvell/octeontx2/af/npc.h
- drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h 34 additions, 34 deletionsdrivers/net/ethernet/marvell/octeontx2/af/npc_profile.h
- drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c 3 additions, 3 deletionsdrivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
Loading
Please register or sign in to comment