lkml.org 
[lkml]   [2020]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] net: dsa: bcm_sf2: make const array static, makes object smaller
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 <colin.king@canonical.com>
> >
> > 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 33828 8424 drivers/net/dsa/bcm_sf2.o
> >
> > After:
> > text data bss dec hex filename
> > 29670 3920 192 33782 83f6 drivers/net/dsa/bcm_sf2.o
> >
> > (gcc version 10.2.0)
> >
> > Signed-off-by: Colin Ian King <colin.king@canonical.com>
>
> Acked-by: Florian Fainelli <f.fainelli@gmail.com>

Applied, thanks!

\
 
 \ /
  Last update: 2020-10-21 06:00    [W:0.052 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site