diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-08-03 15:49:48 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2021-08-21 20:32:38 +0300 |
commit | b05897ca8c821a16ac03850c4704fe460b3f21a0 (patch) | |
tree | cbf5064330536399b44d5f092443799fc10e8c90 /drivers/net/wireless/microchip/wilc1000/sdio.c | |
parent | 369956ae5720ba1b415b37ba23cea5ede2942398 (diff) | |
download | lwn-b05897ca8c821a16ac03850c4704fe460b3f21a0.tar.gz lwn-b05897ca8c821a16ac03850c4704fe460b3f21a0.zip |
rtlwifi: rtl8192de: make arrays static const, makes object smaller
Don't populate arrays the stack but instead make them static const. Replace
array channel_info with channel_all since it contains the same data as
channel_all. Makes object code smaller by 961 bytes.
Before:
text data bss dec hex filename
128147 44250 1024 173421 2a56d ../realtek/rtlwifi/rtl8192de/phy.o
After
text data bss dec hex filename
127122 44314 1024 172460 2a1ac ../realtek/rtlwifi/rtl8192de/phy.o
(gcc version 10.2.0)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210803144949.79433-2-colin.king@canonical.com
Diffstat (limited to 'drivers/net/wireless/microchip/wilc1000/sdio.c')
0 files changed, 0 insertions, 0 deletions