diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-12-01 02:58:04 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-12-01 21:59:10 +0100 |
commit | 26083eb6b15448e7ec5182e33f9b1ba7ebce3a62 (patch) | |
tree | 9b192596ab12a3a2f3d2707db9acbac531d16b9d /drivers/amba | |
parent | userfaultfd: require CAP_SYS_PTRACE for UFFD_FEATURE_EVENT_FORK (diff) | |
download | linux-26083eb6b15448e7ec5182e33f9b1ba7ebce3a62.tar.xz linux-26083eb6b15448e7ec5182e33f9b1ba7ebce3a62.zip |
mm/shmem.c: make array 'values' static const, makes object smaller
Don't populate the array 'values' on the stack but instead make it static
const. Makes the object code smaller by 111 bytes.
Before:
text data bss dec hex filename
108612 11169 512 120293 1d5e5 mm/shmem.o
After:
text data bss dec hex filename
108437 11233 512 120182 1d576 mm/shmem.o
(gcc version 9.2.1, amd64)
Link: http://lkml.kernel.org/r/20190906143012.28698-1-colin.king@canonical.com
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/amba')
0 files changed, 0 insertions, 0 deletions