arm64: Extend support for CONFIG_FUNCTION_ALIGNMENT
[platform/kernel/linux-starfive.git] / arch / arm64 / include / asm / linkage.h
index 1436fa1..d3acd9c 100644 (file)
@@ -5,8 +5,8 @@
 #include <asm/assembler.h>
 #endif
 
-#define __ALIGN                .align 2
-#define __ALIGN_STR    ".align 2"
+#define __ALIGN                .balign CONFIG_FUNCTION_ALIGNMENT
+#define __ALIGN_STR    ".balign " #CONFIG_FUNCTION_ALIGNMENT
 
 /*
  * When using in-kernel BTI we need to ensure that PCS-conformant