Re: [PATCH] net: phy: bcm7xxx: make array bcm7xxx_suspend_cfg static, reduces object code size
From: David Miller
Date: Fri Sep 01 2017 - 21:31:12 EST
From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Thu, 31 Aug 2017 14:57:15 +0100
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Don't populate the array bcm7xxx_suspend_cfg A on the stack, instead
> make it static. Makes the object code smaller by over 300 bytes:
>
> Before:
> text data bss dec hex filename
> 6351 8146 0 14497 38a1 drivers/net/phy/bcm7xxx.o
>
> After:
> text data bss dec hex filename
> 5986 8210 0 14196 3774 drivers/net/phy/bcm7xxx.o
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Applied.