Skip to content

Commit dd73d18

Browse files
committed
arm64: Ensure that the 'bti' macro is defined where linkage.h is included
Not all .S files include asm/assembler.h, however the SYM_FUNC_* definitions invoke the 'bti' macro. Include asm/assembler.h in asm/linkage.h. Fixes: 9be34be ("arm64: Add macro version of the BTI instruction") Signed-off-by: Catalin Marinas <[email protected]>
1 parent 742a15b commit dd73d18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/arm64/include/asm/linkage.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#ifndef __ASM_LINKAGE_H
22
#define __ASM_LINKAGE_H
33

4+
#ifdef __ASSEMBLY__
5+
#include <asm/assembler.h>
6+
#endif
7+
48
#define __ALIGN .align 2
59
#define __ALIGN_STR ".align 2"
610

0 commit comments

Comments
 (0)