diff options
| author | 2019-10-07 11:55:10 +0100 | |
|---|---|---|
| committer | 2019-10-07 09:59:56 -0400 | |
| commit | 99d895729f5d438518c8223d7ce81615cb9a88e9 (patch) | |
| tree | b96a186f149d40de3744bac37950c89a7f50ebaf /drivers/net/netdevsim/dev.c | |
| parent | Merge branch 'net-tls-minor-micro-optimizations' (diff) | |
| download | wireguard-linux-99d895729f5d438518c8223d7ce81615cb9a88e9.tar.xz wireguard-linux-99d895729f5d438518c8223d7ce81615cb9a88e9.zip | |
net: hns: make arrays static, makes object smaller
Don't populate the arrays port_map and sl_map on the stack but
instead make them static. Makes the object code smaller by 64 bytes.
Before:
text data bss dec hex filename
49575 6872 64 56511 dcbf hisilicon/hns/hns_dsaf_main.o
After:
text data bss dec hex filename
49350 7032 64 56446 dc7e hisilicon/hns/hns_dsaf_main.o
(gcc version 9.2.1, amd64)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim/dev.c')
0 files changed, 0 insertions, 0 deletions
