Commit dd73d18e authored by Catalin Marinas's avatar Catalin Marinas
Browse files

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: 9be34be8 ("arm64: Add macro version of the BTI instruction")
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 742a15b1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
#ifndef __ASM_LINKAGE_H
#define __ASM_LINKAGE_H

#ifdef __ASSEMBLY__
#include <asm/assembler.h>
#endif

#define __ALIGN		.align 2
#define __ALIGN_STR	".align 2"