Re: [PATCH net-next] net: hns3: Constify static structs

2020-09-23 Thread David Miller
From: Rikard Falkeborn 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

[PATCH net-next] net: hns3: Constify static structs

2020-09-21 Thread Rikard Falkeborn
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: