lkml.org 
[lkml]   [2017]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] pinctrl: single: make two arrays static const, reduces object code size
    On Tue, Sep 19, 2017 at 4:42 PM, Colin King <colin.king@canonical.com> wrote:

    > From: Colin Ian King <colin.king@canonical.com>
    >
    > Don't populate the read-only arrays prop2 and prop4 on the stack, instead
    > make them static const. Makes the object code smaller by over 230 bytes:
    >
    > Before:
    > text data bss dec hex filename
    > 28235 5820 192 34247 85c7 drivers/pinctrl/pinctrl-single.o
    >
    > After:
    > text data bss dec hex filename
    > 27839 5980 192 34011 84db drivers/pinctrl/pinctrl-single.o
    >
    > Signed-off-by: Colin Ian King <colin.king@canonical.com>

    Patch applied with Tony's ACK.

    Yours,
    Linus Walleij

    \
     
     \ /
      Last update: 2017-09-21 19:32    [W:2.818 / U:0.264 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site