OSDN Git Service

brcmsmac: make const array ucode_ofdm_rates static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Fri, 22 Sep 2017 14:03:16 +0000 (15:03 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Sep 2017 08:23:10 +0000 (11:23 +0300)
commitd5633bb2c62a95be5f049ee1e7b9ae0869a93c41
tree6255d0dda2fc1928656d4afb48d9b8aa311f216f
parent30ac407639390fab45b003003619e430c6f9f728
brcmsmac: make const array ucode_ofdm_rates static, reduces object code size

Don't populate const array ucode_ofdm_rates on the stack, instead make it
static. Makes the object code smaller by 100 bytes:

Before:
   text    data     bss     dec     hex filename
  39482     564       0   40046    9c6e phy_cmn.o

After
   text    data     bss     dec     hex filename
  39326     620       0   39946    9c0a phy_cmn.o

(gcc 6.3.0, x86-64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c