From: Rikard Falkeborn <rikard.falkeb...@gmail.com> Date: Tue, 22 Sep 2020 00:55:17 +0200
> 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.falkeb...@gmail.com> Applied.