diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-09-22 00:55:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-24 02:31:50 +0200 |
commit | e4b9146849f246e77da4787657a3a95c1b6d2833 (patch) | |
tree | 92643ec2bfe06c7e952886fdf1261aa4a2c05204 /drivers/net/ethernet/allwinner | |
parent | Merge branch 'net-bridge-mcast-IGMPv3-MLDv2-fast-path-part-2' (diff) | |
download | linux-e4b9146849f246e77da4787657a3a95c1b6d2833.tar.xz linux-e4b9146849f246e77da4787657a3a95c1b6d2833.zip |
net: hns3: Constify static structs
A number of static variables were not modified. Make them const to allow
the compiler to put them in read-only memory. In order to do so,
constify a couple of input pointers as well as some local pointers.
This moves about 35Kb to read-only memory as seen by the output of the
size command.
Before:
text data bss dec hex filename
404938 111534 640 517112 7e3f8 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge.ko
After:
text data bss dec hex filename
439499 76974 640 517113 7e3f9 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge.ko
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/allwinner')
0 files changed, 0 insertions, 0 deletions