]> asedeno.scripts.mit.edu Git - linux.git/commit
mwifiex: make const arrays static to shink object code size
authorColin Ian King <colin.king@canonical.com>
Sat, 16 Sep 2017 15:34:24 +0000 (16:34 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 20 Sep 2017 12:47:24 +0000 (15:47 +0300)
commitd157bcfaf8542612fd9ffc0cbbc1e52b85157640
tree1c942a1e7ed472f2609f332673dbbe8a19d3d13e
parent85dafc12919659ec744e111b1714792cd3d0a9ca
mwifiex: make const arrays static to shink object code size

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

Before:
   text    data     bss     dec     hex filename
  69260   16149     576   85985   14fe1 cfg80211.o

After:
   text    data     bss     dec     hex filename
  68385   16725     576   85686   14eb6 cfg80211.o

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