Skip to content
Snippets Groups Projects
Commit cc6ddd6f authored by Borislav Petkov (AMD)'s avatar Borislav Petkov (AMD) Committed by Sasha Levin
Browse files

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: default avatarOmar Sandoval <osandov@osandov.com>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/ZeYXvd1-rVkPGvvW@telecaster


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0344b12a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment