[PATCH] pinctrl: uniphier: make arrays static, reduces object code size

Linus Walleij linus.walleij at linaro.org
Tue Sep 12 07:19:30 PDT 2017


On Tue, Sep 12, 2017 at 1:21 PM, Colin King <colin.king at canonical.com> wrote:

> From: Colin Ian King <colin.king at canonical.com>
>
> Don't populate const arrays on the stack, instead make them
> static.  Makes the object code smaller nearly 1000 bytes. Also
> line break wide lines to avoid checkpatch warnings.
>
> Before:
>    text    data     bss     dec     hex filename
>   13112    1996       0   15108    3b04 pinctrl-uniphier-core.o
>
> After:
>    text    data     bss     dec     hex filename
>   11642    2476       0   14118    3726 pinctrl-uniphier-core.o
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>

Patch applied with Masahiro's ACK.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list