OSDN Git Service

b43: make const arrays static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Fri, 22 Sep 2017 15:39:02 +0000 (16:39 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Sep 2017 08:30:20 +0000 (11:30 +0300)
commit96cbe3d638e4287db6482b6223367d3e6cf5871e
tree76169661485fa4bc7ab5b6211c3ecf23639bea44
parent9b029e178ea174acd96a5ddf97b04c70f4e57885
b43: make const arrays static, reduces object code size

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

Before:
   text    data     bss     dec     hex filename
  14816    1296       0   16112    3ef0 b43/phy_ht.o

After:
   text    data     bss     dec     hex filename
  14551    1496       0   16047    3eaf b43/phy_ht.o

(gcc 6.3.0, x86-64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/b43/phy_ht.c