Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/bug: make use of asm_inline

This is the s390 version of commit 32ee8230b2b0 ("x86: bug.h: use
asm_inline in _BUG_FLAGS definitions").

See commit eb111869301e ("compiler-types.h: add asm_inline
definition") for more details.

Just like on x86 the .text section size decreases a bit while the
.data section size increases about the same amount (gcc 9.2 with
defconfig).

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>

authored by

Heiko Carstens and committed by
Vasily Gorbik
6a3035da 6d76c898

+2 -2
+2 -2
arch/s390/include/asm/bug.h
··· 9 9 #ifdef CONFIG_DEBUG_BUGVERBOSE 10 10 11 11 #define __EMIT_BUG(x) do { \ 12 - asm volatile( \ 12 + asm_inline volatile( \ 13 13 "0: j 0b+2\n" \ 14 14 "1:\n" \ 15 15 ".section .rodata.str,\"aMS\",@progbits,1\n" \ ··· 28 28 #else /* CONFIG_DEBUG_BUGVERBOSE */ 29 29 30 30 #define __EMIT_BUG(x) do { \ 31 - asm volatile( \ 31 + asm_inline volatile( \ 32 32 "0: j 0b+2\n" \ 33 33 "1:\n" \ 34 34 ".section __bug_table,\"awM\",@progbits,%1\n" \