Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: add __ASSEMBLY__ in asm/insn.h

Since insn.h is indirectly included in asm/entry-ftrace.S,
we need to exclude some declarations by __ASSEMBLY__.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>

authored by

AKASHI Takahiro and committed by
Will Deacon
26e9b83a 2eb8b396

+2
+2
arch/arm64/include/asm/insn.h
··· 21 21 /* A64 instructions are always 32 bits. */ 22 22 #define AARCH64_INSN_SIZE 4 23 23 24 + #ifndef __ASSEMBLY__ 24 25 /* 25 26 * ARM Architecture Reference Manual for ARMv8 Profile-A, Issue A.a 26 27 * Section C3.1 "A64 instruction index by encoding": ··· 105 104 int aarch64_insn_patch_text_nosync(void *addr, u32 insn); 106 105 int aarch64_insn_patch_text_sync(void *addrs[], u32 insns[], int cnt); 107 106 int aarch64_insn_patch_text(void *addrs[], u32 insns[], int cnt); 107 + #endif /* __ASSEMBLY__ */ 108 108 109 109 #endif /* __ASM_INSN_H */