mwifiex: make const array tos_to_ac static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Tue, 19 Sep 2017 21:05:00 +0000 (22:05 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Sep 2017 08:24:38 +0000 (11:24 +0300)
commit7dfb0ebd022b15dcafd513ae9270599799764e50
treebbf833a4755b27910da0660419605eae5ae0ef93
parente0a576d7478230aaf51c479db57a2c5ce68e2575
mwifiex: make const array tos_to_ac static, reduces object code size

Don't populate the read-only const array tos_to_ac on the stack,
instead make it static. Makes the object code smaller by 250 bytes:

Before:
   text    data     bss     dec     hex filename
  26104    2720     128   28952    7118 wmm.o

After:
   text    data     bss     dec     hex filename
  25758    2816     128   28702    701e wmm.o

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