diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2025-03-10 12:33:38 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2025-03-18 19:13:04 +0300 |
commit | 430693c836c3828c72db2e1b1a7d2ddc97509cb8 (patch) | |
tree | ffdd1051657365144bcc74baed4d7ec3cf0c52be /scripts/generate_rust_analyzer.py | |
parent | 20de8f8d3178c695ed2f90bd81ff0b6df8cd32e8 (diff) | |
download | linux-430693c836c3828c72db2e1b1a7d2ddc97509cb8.tar.xz |
s390/lowcore: Use inline qualifier for get_lowcore() inline assembly
Use asm_inline to let the compiler know that the get_lowcore() inline
assembly has the smallest possible size. The ALTERNATIVE construct is used
to generate a single instruction, however the macro expands to multiple
lines. GCC uses the number of lines of an inline assembly to count the
number of instructions within an inline assembly, which then has an effect
on inlining decisions.
In order to avoid incorrect assumptions use asm_inline. The result is that
more functions are inlined, which results in a small growth of the kernel
image:
add/remove: 59/480 grow/shrink: 854/647 up/down: 168780/-162394 (6386)
Reviewed-by: Juergen Christ <jchrist@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions