]> git.baikalelectronics.ru Git - kernel.git/commit
net: broadcom: bnx2x: make a couple of const arrays static
authorColin Ian King <colin.king@canonical.com>
Tue, 11 Jul 2017 10:52:23 +0000 (11:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jul 2017 16:23:56 +0000 (09:23 -0700)
commit287c7d9984cf0d569b326aa89931e8acb3dc7ef2
tree29c2fb4e6d163e8cddbc1660833a0f3110bdd738
parente2a7be5ea940d7f9736fe3ae4bafedebda3c2360
net: broadcom: bnx2x: make a couple of const arrays static

Don't populate various tables on the stack but make them static const.
Makes the object code smaller by nearly 200 bytes:

Before:
   text    data     bss     dec     hex filename
 113468   11200       0  124668   1e6fc bnx2x_ethtool.o

After:
   text    data     bss     dec     hex filename
 113129   11344       0  124473   1e639 bnx2x_ethtool.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c