Re: [PATCH] phy: qcom-qmp: make a const array static, makes object smaller

From: Vinod Koul
Date: Sat Feb 06 2021 - 05:04:49 EST


On 04-02-21, 18:03, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Don't populate the const array cfg1_settings on the stack but instead make
> it static. Makes the object code smaller by 24 bytes:
>
> Before:
> text data bss dec hex filename
> 73585 20240 64 93889 16ec1 drivers/phy/qualcomm/phy-qcom-qmp.o
>
> After:
> text data bss dec hex filename
> 73465 20336 64 93865 16ea9 drivers/phy/qualcomm/phy-qcom-qmp.o
>
> (gcc version 10.2.0)

Applied, thanks

--
~Vinod