Skip to content

Commit 0f20822

Browse files
heicarstMartin Schwidefsky
authored andcommitted
s390/dis: move disassembler function prototypes to proper header file
Now that the in-kernel disassembler has an own header file move the disassembler related function prototypes to that header file. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 648ae35 commit 0f20822

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎arch/s390/include/asm/dis.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@ static inline int insn_length(unsigned char code)
3939
return ((((int) code + 64) >> 7) + 1) << 1;
4040
}
4141

42+
void show_code(struct pt_regs *regs);
43+
void print_fn_code(unsigned char *code, unsigned long len);
44+
int insn_to_mnemonic(unsigned char *instruction, char *buf, unsigned int len);
45+
4246
#endif /* __ASM_S390_DIS_H__ */

‎arch/s390/include/asm/processor.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,6 @@ extern void release_thread(struct task_struct *);
169169
*/
170170
extern unsigned long thread_saved_pc(struct task_struct *t);
171171

172-
extern void show_code(struct pt_regs *regs);
173-
extern void print_fn_code(unsigned char *code, unsigned long len);
174-
extern int insn_to_mnemonic(unsigned char *instruction, char *buf,
175-
unsigned int len);
176-
177172
unsigned long get_wchan(struct task_struct *p);
178173
#define task_pt_regs(tsk) ((struct pt_regs *) \
179174
(task_stack_page(tsk) + THREAD_SIZE) - 1)

‎arch/s390/kernel/dumpstack.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/sched.h>
1616
#include <asm/processor.h>
1717
#include <asm/debug.h>
18+
#include <asm/dis.h>
1819
#include <asm/ipl.h>
1920

2021
#ifndef CONFIG_64BIT

‎arch/s390/kvm/trace.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <linux/tracepoint.h>
55
#include <asm/sigp.h>
66
#include <asm/debug.h>
7+
#include <asm/dis.h>
78

89
#undef TRACE_SYSTEM
910
#define TRACE_SYSTEM kvm

‎arch/s390/net/bpf_jit_comp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#include <linux/random.h>
1313
#include <linux/init.h>
1414
#include <asm/cacheflush.h>
15-
#include <asm/processor.h>
1615
#include <asm/facility.h>
16+
#include <asm/dis.h>
1717

1818
/*
1919
* Conventions:

0 commit comments

Comments
 (0)