arm64: Add __ASSEMBLY__ guards to insn.h
authorMark Brown <broonie@linaro.org>
Thu, 29 May 2014 15:02:15 +0000 (16:02 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 30 May 2014 17:15:44 +0000 (18:15 +0100)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/include/asm/insn.h

index c44ad39ed3107859a9bb8c7e7115dbc146825f47..62e7b8bcd2dc8461c153edfab2f64c364c1e462d 100644 (file)
  */
 #ifndef        __ASM_INSN_H
 #define        __ASM_INSN_H
+
 #include <linux/types.h>
 
 /* A64 instructions are always 32 bits. */
 #define        AARCH64_INSN_SIZE               4
 
+#ifndef __ASSEMBLY__
+
 /*
  * ARM Architecture Reference Manual for ARMv8 Profile-A, Issue A.a
  * Section C3.1 "A64 instruction index by encoding":
@@ -105,4 +108,6 @@ int aarch64_insn_patch_text_nosync(void *addr, u32 insn);
 int aarch64_insn_patch_text_sync(void *addrs[], u32 insns[], int cnt);
 int aarch64_insn_patch_text(void *addrs[], u32 insns[], int cnt);
 
+#endif  /* __ASSEMBLY__ */
+
 #endif /* __ASM_INSN_H */