diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2013-09-13 07:36:25 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-10-24 11:16:48 -0400 |
commit | 0f20822a69148f53bbafbe6ee3d43e8eff0bad27 (patch) | |
tree | d8748221c6f4fde33411ce204ae9f8c2c74f973e | |
parent | 648ae35c54b147c3b25d212f2936bb1cb91ea7d0 (diff) |
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>
-rw-r--r-- | arch/s390/include/asm/dis.h | 4 | ||||
-rw-r--r-- | arch/s390/include/asm/processor.h | 5 | ||||
-rw-r--r-- | arch/s390/kernel/dumpstack.c | 1 | ||||
-rw-r--r-- | arch/s390/kvm/trace.h | 1 | ||||
-rw-r--r-- | arch/s390/net/bpf_jit_comp.c | 2 |
5 files changed, 7 insertions, 6 deletions
diff --git a/arch/s390/include/asm/dis.h b/arch/s390/include/asm/dis.h index 6f73119ef27e..4d0dffc68221 100644 --- a/arch/s390/include/asm/dis.h +++ b/arch/s390/include/asm/dis.h | |||
@@ -39,4 +39,8 @@ static inline int insn_length(unsigned char code) | |||
39 | return ((((int) code + 64) >> 7) + 1) << 1; | 39 | return ((((int) code + 64) >> 7) + 1) << 1; |
40 | } | 40 | } |
41 | 41 | ||
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 | |||
42 | #endif /* __ASM_S390_DIS_H__ */ | 46 | #endif /* __ASM_S390_DIS_H__ */ |
diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index ca7821f07260..50256f05fbcf 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h | |||
@@ -169,11 +169,6 @@ extern void release_thread(struct task_struct *); | |||
169 | */ | 169 | */ |
170 | extern unsigned long thread_saved_pc(struct task_struct *t); | 170 | extern unsigned long thread_saved_pc(struct task_struct *t); |
171 | 171 | ||
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 | |||
177 | unsigned long get_wchan(struct task_struct *p); | 172 | unsigned long get_wchan(struct task_struct *p); |
178 | #define task_pt_regs(tsk) ((struct pt_regs *) \ | 173 | #define task_pt_regs(tsk) ((struct pt_regs *) \ |
179 | (task_stack_page(tsk) + THREAD_SIZE) - 1) | 174 | (task_stack_page(tsk) + THREAD_SIZE) - 1) |
diff --git a/arch/s390/kernel/dumpstack.c b/arch/s390/kernel/dumpstack.c index 99e7f6035895..e6af9406987c 100644 --- a/arch/s390/kernel/dumpstack.c +++ b/arch/s390/kernel/dumpstack.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/sched.h> | 15 | #include <linux/sched.h> |
16 | #include <asm/processor.h> | 16 | #include <asm/processor.h> |
17 | #include <asm/debug.h> | 17 | #include <asm/debug.h> |
18 | #include <asm/dis.h> | ||
18 | #include <asm/ipl.h> | 19 | #include <asm/ipl.h> |
19 | 20 | ||
20 | #ifndef CONFIG_64BIT | 21 | #ifndef CONFIG_64BIT |
diff --git a/arch/s390/kvm/trace.h b/arch/s390/kvm/trace.h index c2f582bb1cb2..0c991c6748ab 100644 --- a/arch/s390/kvm/trace.h +++ b/arch/s390/kvm/trace.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <linux/tracepoint.h> | 4 | #include <linux/tracepoint.h> |
5 | #include <asm/sigp.h> | 5 | #include <asm/sigp.h> |
6 | #include <asm/debug.h> | 6 | #include <asm/debug.h> |
7 | #include <asm/dis.h> | ||
7 | 8 | ||
8 | #undef TRACE_SYSTEM | 9 | #undef TRACE_SYSTEM |
9 | #define TRACE_SYSTEM kvm | 10 | #define TRACE_SYSTEM kvm |
diff --git a/arch/s390/net/bpf_jit_comp.c b/arch/s390/net/bpf_jit_comp.c index a5df511e27a2..49425ca801d5 100644 --- a/arch/s390/net/bpf_jit_comp.c +++ b/arch/s390/net/bpf_jit_comp.c | |||
@@ -12,8 +12,8 @@ | |||
12 | #include <linux/random.h> | 12 | #include <linux/random.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <asm/cacheflush.h> | 14 | #include <asm/cacheflush.h> |
15 | #include <asm/processor.h> | ||
16 | #include <asm/facility.h> | 15 | #include <asm/facility.h> |
16 | #include <asm/dis.h> | ||
17 | 17 | ||
18 | /* | 18 | /* |
19 | * Conventions: | 19 | * Conventions: |