A follow-up patch will require to include insn.h from assembly code. So
we need to protect any C-specific definition to avoid compilation
errors when used in assembly code.
Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Release-acked-by: Juergen Gross <jgross@suse.com>
#ifndef __ARCH_ARM_INSN
#define __ARCH_ARM_INSN
+#ifndef __ASSEMBLY__
+
#include <xen/types.h>
#if defined(CONFIG_ARM_64)
# error "unknown ARM variant"
#endif
+#endif /* __ASSEMBLY__ */
+
/* On ARM32,64 instructions are always 4 bytes long. */
#define ARCH_PATCH_INSN_SIZE 4