]> git.baikalelectronics.ru Git - kernel.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)
commit1ea9d25ff7bb93f790d9d8505c4159a061fd8178
tree1c942a1e7ed472f2609f332673dbbe8a19d3d13e
parenta6871101ad0ba889e2bcbbd187f18de40ae6e292
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