diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-11-28 19:59:46 +0100 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-12-16 21:30:08 +0100 |
commit | bf6571057f0830ab5132be8b6045d2677baad281 (patch) | |
tree | d4b51bfe804a88e695ea99a15b510270bc77070a /Kbuild | |
parent | Linux 4.15-rc1 (diff) | |
download | linux-bf6571057f0830ab5132be8b6045d2677baad281.tar.xz linux-bf6571057f0830ab5132be8b6045d2677baad281.zip |
mtd: mtdswap: make array 'name' static const, shrinks object size
Don't populate the read-only array 'name' on the stack but instead
make it static and constify it. Makes the object code smaller by 35
bytes:
Before:
text data bss dec hex filename
26304 4444 352 31100 797c drivers/mtd/mtdswap.o
After:
text data bss dec hex filename
26205 4508 352 31065 7959 drivers/mtd/mtdswap.o
(gcc version 7.2.0 x86_64)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions