From: Vasily Gorbik Date: Wed, 30 Jun 2021 08:21:58 +0000 (+0200) Subject: s390/linkage: increase asm symbols alignment to 16 X-Git-Tag: v5.15~742^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ee471fe5a5a891ac4fcd45b5457fcb17de694de;p=platform%2Fkernel%2Flinux-starfive.git s390/linkage: increase asm symbols alignment to 16 Both clang and gcc (for -march=z13 and later) align functions to 16 bytes at -O2 to benefit branch prediction. Make asm symbols alignment consistent with that. This also benefits potential ftrace code patching, which is currently able to patch 8 aligned bytes at once. With defconfig this currently increases .text size by 4104 bytes. Reviewed-by: Heiko Carstens Signed-off-by: Vasily Gorbik --- diff --git a/arch/s390/include/asm/linkage.h b/arch/s390/include/asm/linkage.h index a0a7a2c..24e8fed 100644 --- a/arch/s390/include/asm/linkage.h +++ b/arch/s390/include/asm/linkage.h @@ -5,7 +5,7 @@ #include #include -#define __ALIGN .align 4, 0x07 +#define __ALIGN .align 16, 0x07 #define __ALIGN_STR __stringify(__ALIGN) /*