summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/dis.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2017-11-06 13:28:38 +0100
committerHeiko Carstens <heiko.carstens@de.ibm.com>2017-11-08 22:10:49 +0100
commitdac6dc267d0e906fa9263462d4ebd78970a8b511 (patch)
tree03bc57143d137a49e1ed6f1b7cbed821dc98ea38 /arch/s390/kernel/dis.c
parent399c5acd5837f6c93d784d8dd25ebae5a50362e1 (diff)
downloadlinux-stable-dac6dc267d0e906fa9263462d4ebd78970a8b511.tar.gz
linux-stable-dac6dc267d0e906fa9263462d4ebd78970a8b511.tar.bz2
linux-stable-dac6dc267d0e906fa9263462d4ebd78970a8b511.zip
s390/disassembler: remove insn_to_mnemonic()
insn_to_mnemonic() was introduced ages ago for KVM debugging, but is unused in the meantime. Therefore remove it. Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/dis.c')
-rw-r--r--arch/s390/kernel/dis.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/s390/kernel/dis.c b/arch/s390/kernel/dis.c
index 94e96a7bd6d8..2cf4a084763e 100644
--- a/arch/s390/kernel/dis.c
+++ b/arch/s390/kernel/dis.c
@@ -1961,34 +1961,6 @@ struct s390_insn *find_insn(unsigned char *code)
return NULL;
}
-/**
- * insn_to_mnemonic - decode an s390 instruction
- * @instruction: instruction to decode
- * @buf: buffer to fill with mnemonic
- * @len: length of buffer
- *
- * Decode the instruction at @instruction and store the corresponding
- * mnemonic into @buf of length @len.
- * @buf is left unchanged if the instruction could not be decoded.
- * Returns:
- * %0 on success, %-ENOENT if the instruction was not found.
- */
-int insn_to_mnemonic(unsigned char *instruction, char *buf, unsigned int len)
-{
- struct s390_insn *insn;
-
- insn = find_insn(instruction);
- if (!insn)
- return -ENOENT;
- if (insn->name[0] == '\0')
- snprintf(buf, len, "%s",
- long_insn_name[(int) insn->name[1]]);
- else
- snprintf(buf, len, "%.5s", insn->name);
- return 0;
-}
-EXPORT_SYMBOL_GPL(insn_to_mnemonic);
-
static int print_insn(char *buffer, unsigned char *code, unsigned long addr)
{
struct s390_insn *insn;