Re: [PATCH] net: dsa: bcm_sf2: make const array static, makes object smaller

2020-10-20 Thread Jakub Kicinski
On Tue, 20 Oct 2020 09:51:39 -0700 Florian Fainelli wrote: > On 10/20/20 9:50 AM, Colin King wrote: > > From: Colin Ian King > > > > Don't populate the const array rate_table on the stack but instead it > > static. Makes the object code smaller by 46 bytes. > > > > Before: > >text

Re: [PATCH] net: dsa: bcm_sf2: make const array static, makes object smaller

2020-10-20 Thread Florian Fainelli
On 10/20/20 9:50 AM, Colin King wrote: > From: Colin Ian King > > Don't populate the const array rate_table on the stack but instead it > static. Makes the object code smaller by 46 bytes. > > Before: >text data bss dec hex filename > 29812 3824 192

[PATCH] net: dsa: bcm_sf2: make const array static, makes object smaller

2020-10-20 Thread Colin King
From: Colin Ian King Don't populate the const array rate_table on the stack but instead it static. Makes the object code smaller by 46 bytes. Before: textdata bss dec hex filename 298123824 192 338288424 drivers/net/dsa/bcm_sf2.o After: textdata