]> git.baikalelectronics.ru Git - kernel.git/commit
fsl/fman: make arrays port_ids static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Thu, 31 Aug 2017 13:24:49 +0000 (14:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Sep 2017 01:21:09 +0000 (18:21 -0700)
commit47e861653a03f6ab61b2046e70b91e77bb9f9642
treefc6f9977c31cec02d3a93cc9e5b77f3ab9035daa
parentad84a84a65a92219882225ae29ae535f18f219f5
fsl/fman: make arrays port_ids static, reduces object code size

Don't populate the arrays port_ids on the stack, instead make them static.
Makes the object code smaller by over 700 bytes:

Before:
   text    data     bss     dec     hex filename
  28785    5832     192   34809    87f9 fman.o

After:
   text    data     bss     dec     hex filename
  27921    5992     192   34105    8539 fman.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman.c