diff options
author | Vineet Gupta | 2012-12-21 12:25:44 +0530 |
---|---|---|
committer | Al Viro | 2012-12-26 01:14:12 -0500 |
commit | f80b0c904da93b9ad7db2fd9823dd701932df779 (patch) | |
tree | a226468f666012471d9a43a8f48c9588a3fd43b3 /include/asm-generic/pci-dma-compat.h | |
parent | a49f0d1ea3ec94fc7cf33a7c36a16343b74bd565 (diff) |
Ensure that kernel_init_freeable() is not inlined into non __init code
Commit d6b2123802d "make sure that we always have a return path from
kernel_execve()" reshuffled kernel_init()/init_post() to ensure that
kernel_execve() has a caller to return to.
It removed __init annotation for kernel_init() and introduced/calls a
new routine kernel_init_freeable(). Latter however is inlined by any
reasonable compiler (ARC gcc 4.4 in this case), causing slight code
bloat.
This patch forces kernel_init_freeable() as noinline reducing the .text
bloat-o-meter vmlinux vmlinux_new
add/remove: 1/0 grow/shrink: 0/1 up/down: 374/-334 (40)
function old new delta
kernel_init_freeable - 374 +374 (.init.text)
kernel_init 628 294 -334 (.text)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/asm-generic/pci-dma-compat.h')
0 files changed, 0 insertions, 0 deletions