tools/x86: Fix linux/unaligned.h include path in lib/insn.c
authorIan Rogers <irogers@google.com>
Tue, 25 Feb 2025 19:36:00 +0000 (11:36 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 28 Feb 2025 18:09:04 +0000 (10:09 -0800)
tools/arch/x86/include/linux doesn't exist but building is working by
virtue of a -I. Building using bazel this fails. Use angle brackets to
include unaligned.h so there isn't an invalid relative include.

Fixes: 5f60d5f6bbc1 ("move asm/unaligned.h to linux/unaligned.h")
Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/r/20250225193600.90037-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/arch/x86/lib/insn.c

index ab5cdc3337dacbd231d124b6969740a8cec52a0d..e91d4c4e1c162103f9da3b8d88351563ca89a9c8 100644 (file)
@@ -13,7 +13,7 @@
 #endif
 #include "../include/asm/inat.h" /* __ignore_sync_check__ */
 #include "../include/asm/insn.h" /* __ignore_sync_check__ */
-#include "../include/linux/unaligned.h" /* __ignore_sync_check__ */
+#include <linux/unaligned.h> /* __ignore_sync_check__ */
 
 #include <linux/errno.h>
 #include <linux/kconfig.h>