]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Jul 2022 07:42:03 +0000 (09:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Jul 2022 07:42:03 +0000 (09:42 +0200)
added patches:
tools-insn-restore-the-relative-include-paths-for-cross-building.patch

queue-5.10/series
queue-5.10/tools-insn-restore-the-relative-include-paths-for-cross-building.patch [new file with mode: 0644]

index 91daa3e414c70af36467ec0c018e75169fc756a0..84af897df893ee6d1d83fb9138fb4bb0466058bc 100644 (file)
@@ -128,3 +128,4 @@ x86-bugs-do-not-enable-ibpb-on-entry-when-ibpb-is-not-supported.patch
 x86-kexec-disable-ret-on-kexec.patch
 x86-speculation-disable-rrsba-behavior.patch
 x86-static_call-serialize-__static_call_fixup-properly.patch
+tools-insn-restore-the-relative-include-paths-for-cross-building.patch
diff --git a/queue-5.10/tools-insn-restore-the-relative-include-paths-for-cross-building.patch b/queue-5.10/tools-insn-restore-the-relative-include-paths-for-cross-building.patch
new file mode 100644 (file)
index 0000000..40a811c
--- /dev/null
@@ -0,0 +1,51 @@
+From 0705ef64d1ff52b817e278ca6e28095585ff31e1 Mon Sep 17 00:00:00 2001
+From: Borislav Petkov <bp@suse.de>
+Date: Wed, 17 Mar 2021 11:33:04 +0100
+Subject: tools/insn: Restore the relative include paths for cross building
+
+From: Borislav Petkov <bp@suse.de>
+
+commit 0705ef64d1ff52b817e278ca6e28095585ff31e1 upstream.
+
+Building perf on ppc causes:
+
+  In file included from util/intel-pt-decoder/intel-pt-insn-decoder.c:15:
+  util/intel-pt-decoder/../../../arch/x86/lib/insn.c:14:10: fatal error: asm/inat.h: No such file or directory
+     14 | #include <asm/inat.h> /*__ignore_sync_check__ */
+        |          ^~~~~~~~~~~~
+
+Restore the relative include paths so that the compiler can find the
+headers.
+
+Fixes: 93281c4a9657 ("x86/insn: Add an insn_decode() API")
+Reported-by: Ian Rogers <irogers@google.com>
+Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
+Signed-off-by: Borislav Petkov <bp@suse.de>
+Tested-by: Ian Rogers <irogers@google.com>
+Tested-by: Stephen Rothwell <sfr@canb.auug.org.au>
+Link: https://lkml.kernel.org/r/20210317150858.02b1bbc8@canb.auug.org.au
+Cc: Florian Fainelli <f.fainelli@gmail.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ tools/arch/x86/lib/insn.c |    6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+--- a/tools/arch/x86/lib/insn.c
++++ b/tools/arch/x86/lib/insn.c
+@@ -10,13 +10,13 @@
+ #else
+ #include <string.h>
+ #endif
+-#include <asm/inat.h> /* __ignore_sync_check__ */
+-#include <asm/insn.h> /* __ignore_sync_check__ */
++#include "../include/asm/inat.h" /* __ignore_sync_check__ */
++#include "../include/asm/insn.h" /* __ignore_sync_check__ */
+ #include <linux/errno.h>
+ #include <linux/kconfig.h>
+-#include <asm/emulate_prefix.h> /* __ignore_sync_check__ */
++#include "../include/asm/emulate_prefix.h" /* __ignore_sync_check__ */
+ /* Verify next sizeof(t) bytes can be on the same instruction */
+ #define validate_next(t, insn, n)     \