summaryrefslogtreecommitdiffstats
path: root/tools/arch
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2020-11-22 18:12:37 +0100
committerBorislav Petkov <bp@suse.de>2021-03-15 12:58:36 +0100
commit404b639e510b36136ef15b08ca8a022845ed87db (patch)
tree960773aaff261d46037b8a66c7798dda75ec26f4 /tools/arch
parent62660b0fd238253aff951479a2adf1f06a231422 (diff)
downloadlinux-stable-404b639e510b36136ef15b08ca8a022845ed87db.tar.gz
linux-stable-404b639e510b36136ef15b08ca8a022845ed87db.tar.bz2
linux-stable-404b639e510b36136ef15b08ca8a022845ed87db.zip
x86/insn: Remove kernel_insn_init()
Now that it is not needed anymore, drop it. Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20210304174237.31945-21-bp@alien8.de
Diffstat (limited to 'tools/arch')
-rw-r--r--tools/arch/x86/include/asm/insn.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/tools/arch/x86/include/asm/insn.h b/tools/arch/x86/include/asm/insn.h
index 2fe19b1a8765..5aae785003dc 100644
--- a/tools/arch/x86/include/asm/insn.h
+++ b/tools/arch/x86/include/asm/insn.h
@@ -159,17 +159,6 @@ static inline void insn_get_attribute(struct insn *insn)
/* Instruction uses RIP-relative addressing */
extern int insn_rip_relative(struct insn *insn);
-/* Init insn for kernel text */
-static inline void kernel_insn_init(struct insn *insn,
- const void *kaddr, int buf_len)
-{
-#ifdef CONFIG_X86_64
- insn_init(insn, kaddr, buf_len, 1);
-#else /* CONFIG_X86_32 */
- insn_init(insn, kaddr, buf_len, 0);
-#endif
-}
-
static inline int insn_is_avx(struct insn *insn)
{
if (!insn->prefixes.got)