summaryrefslogtreecommitdiffstats
path: root/arch/x86/tools
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2020-11-13 00:03:23 +0100
committerJosh Poimboeuf <jpoimboe@redhat.com>2021-01-13 18:13:11 -0600
commit1d509f2a6ebca1aea3089c769f6375f01a832e9b (patch)
tree35d674a10d5c2e0e5f0f56cb3520bd14958f5183 /arch/x86/tools
parentc8d7b7e592f471ec1da39d872dc6bbf767a812e7 (diff)
downloadlinux-1d509f2a6ebca1aea3089c769f6375f01a832e9b.tar.gz
linux-1d509f2a6ebca1aea3089c769f6375f01a832e9b.tar.bz2
linux-1d509f2a6ebca1aea3089c769f6375f01a832e9b.zip
x86/insn: Support big endian cross-compiles
The x86 instruction decoder code is shared across the kernel source and the tools. Currently objtool seems to be the only tool from build tools needed which breaks x86 cross-compilation on big endian systems. Make the x86 instruction decoder build host endianness agnostic to support x86 cross-compilation and enable objtool to implement endianness awareness for big endian architectures support. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Co-developed-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Diffstat (limited to 'arch/x86/tools')
-rw-r--r--arch/x86/tools/insn_sanity.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/tools/insn_sanity.c b/arch/x86/tools/insn_sanity.c
index 185ceba9d289..c6a0000ae635 100644
--- a/arch/x86/tools/insn_sanity.c
+++ b/arch/x86/tools/insn_sanity.c
@@ -14,10 +14,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-
-#define unlikely(cond) (cond)
-#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
-
#include <asm/insn.h>
#include <inat.c>
#include <insn.c>