Re: [PATCH 1/4] s390/percpu: Use asm_inline for arch_this_cpu_add()
From: Alexander Gordeev
Date: Mon Oct 12 2026 - 08:48:59 EST
On Mon, Oct 12, 2026 at 01:42:46PM +0200, Heiko Carstens wrote:
> When converting to preemptible percpu operations the arch_this_cpu_add()
> inline assemblies were not converted to use asm_inline instead of a plain
> asm statement.
>
> With all the macro usage the inline assemblies grow significantly, and
> the compiler may decide to not inline even small functions. This can be
> observed with gcc16 and a defconfig build where many calls to
> __srcu_read_lock_fast() are not inlined anymore, even though it is
> basically only a this_cpu_inc().
>
> Use asm_inline to address this.
>
> Fixes: 18ec6c5d7ec6 ("s390/percpu: Use new percpu code section for arch_this_cpu_add()")
> Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
> ---
> arch/s390/include/asm/percpu.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Acked-by: Alexander Gordeev <agordeev@xxxxxxxxxxxxx>