]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Fixes for 5.10
authorSasha Levin <sashal@kernel.org>
Wed, 20 Mar 2024 22:42:51 +0000 (18:42 -0400)
committerSasha Levin <sashal@kernel.org>
Wed, 20 Mar 2024 22:42:51 +0000 (18:42 -0400)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-5.10/series
queue-5.10/x86-paravirt-fix-build-due-to-__text_gen_insn-backpo.patch [new file with mode: 0644]

index 9738ea56029c742a5267fa2d064f95bd083f600c..5096303104419853b48e02d4ce6ff0127b56c47c 100644 (file)
@@ -25,3 +25,4 @@ input-gpio_keys_polled-suppress-deferred-probe-error.patch
 asoc-wm8962-enable-oscillator-if-selecting-wm8962_fl.patch
 asoc-wm8962-enable-both-spkoutr_ena-and-spkoutl_ena-.patch
 asoc-wm8962-fix-up-incorrect-error-message-in-wm8962.patch
+x86-paravirt-fix-build-due-to-__text_gen_insn-backpo.patch
diff --git a/queue-5.10/x86-paravirt-fix-build-due-to-__text_gen_insn-backpo.patch b/queue-5.10/x86-paravirt-fix-build-due-to-__text_gen_insn-backpo.patch
new file mode 100644 (file)
index 0000000..e03712d
--- /dev/null
@@ -0,0 +1,42 @@
+From 595dc01837c4a464219763d9ecaa8c5d0df3a51d Mon Sep 17 00:00:00 2001
+From: Sasha Levin <sashal@kernel.org>
+Date: Wed, 20 Mar 2024 12:03:16 -0400
+Subject: x86/paravirt: Fix build due to __text_gen_insn() backport
+
+From: Borislav Petkov (AMD) <bp@alien8.de>
+
+The Link tag has all the details but basically due to missing upstream
+commits, the header which contains __text_gen_insn() is not in the
+includes in paravirt.c, leading to:
+
+  arch/x86/kernel/paravirt.c: In function 'paravirt_patch_call':
+  arch/x86/kernel/paravirt.c:65:9: error: implicit declaration of function '__text_gen_insn' \
+  [-Werror=implicit-function-declaration]
+   65 |         __text_gen_insn(insn_buff, CALL_INSN_OPCODE,
+      |         ^~~~~~~~~~~~~~~
+
+Add the missing include.
+
+Reported-by: Omar Sandoval <osandov@osandov.com>
+Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
+Link: https://lore.kernel.org/r/ZeYXvd1-rVkPGvvW@telecaster
+Signed-off-by: Sasha Levin <sashal@kernel.org>
+---
+ arch/x86/kernel/paravirt.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c
+index 5bea8d93883a2..f0e4ad8595ca7 100644
+--- a/arch/x86/kernel/paravirt.c
++++ b/arch/x86/kernel/paravirt.c
+@@ -31,6 +31,7 @@
+ #include <asm/special_insns.h>
+ #include <asm/tlb.h>
+ #include <asm/io_bitmap.h>
++#include <asm/text-patching.h>
+ /*
+  * nop stub, which must not clobber anything *including the stack* to
+-- 
+2.43.0
+