]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
x86/paravirt: Fix build due to __text_gen_insn() backport
authorBorislav Petkov (AMD) <bp@alien8.de>
Wed, 20 Mar 2024 16:03:16 +0000 (12:03 -0400)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:21:47 +0000 (18:21 -0400)
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

index 5bea8d93883a299ca37bf2d611b1828dd62ecfa9..f0e4ad8595ca74eb5cf949bb37567dde05a1f5a3 100644 (file)
@@ -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