diff options
author | Borislav Petkov <bp@suse.de> | 2020-11-24 01:19:03 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-03-15 15:03:46 +0300 |
commit | f935178b5c1c32ff803b15892a8ba85a1280cb01 (patch) | |
tree | 8091de53fad64e10fe6b35123b7e718227027895 /arch/x86/include/asm/insn.h | |
parent | 404b639e510b36136ef15b08ca8a022845ed87db (diff) | |
download | linux-f935178b5c1c32ff803b15892a8ba85a1280cb01.tar.xz |
x86/insn: Make insn_complete() static
... and move it above the only place it is used.
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210304174237.31945-22-bp@alien8.de
Diffstat (limited to 'arch/x86/include/asm/insn.h')
-rw-r--r-- | arch/x86/include/asm/insn.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/x86/include/asm/insn.h b/arch/x86/include/asm/insn.h index 5eb3753dce33..f03b6ca7dec6 100644 --- a/arch/x86/include/asm/insn.h +++ b/arch/x86/include/asm/insn.h @@ -178,13 +178,6 @@ static inline int insn_has_emulate_prefix(struct insn *insn) return !!insn->emulate_prefix_size; } -/* Ensure this instruction is decoded completely */ -static inline int insn_complete(struct insn *insn) -{ - return insn->opcode.got && insn->modrm.got && insn->sib.got && - insn->displacement.got && insn->immediate.got; -} - static inline insn_byte_t insn_vex_m_bits(struct insn *insn) { if (insn->vex_prefix.nbytes == 2) /* 2 bytes VEX */ |