From: Borislav Petkov (AMD) Date: Wed, 20 Mar 2024 16:03:16 +0000 (-0400) Subject: x86/paravirt: Fix build due to __text_gen_insn() backport X-Git-Tag: v5.10.214~206 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc6ddd6fa93eb59ac6f63158a6466e45ad0ca94c;p=thirdparty%2Fkernel%2Fstable.git x86/paravirt: Fix build due to __text_gen_insn() backport 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 Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/ZeYXvd1-rVkPGvvW@telecaster Signed-off-by: Sasha Levin --- 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 #include #include +#include /* * nop stub, which must not clobber anything *including the stack* to