aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-06-24 01:47:28 -0400
committerArnd Bergmann <arnd@arndb.de>2019-07-01 11:51:40 -0400
commit7f3a8dff1219fba3076fe207972d1d7893c099bb (patch)
tree8fff9fa31d335e6f4d43263ca90b32714681f974
parent79f2562c326e0731f9c9f089d47c89399ad732e2 (diff)
asm-generic: remove ptrace.h
No one is using this header anymore. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Paul Burton <paul.burton@mips.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--MAINTAINERS1
-rw-r--r--arch/mips/include/asm/ptrace.h5
-rw-r--r--include/asm-generic/ptrace.h73
3 files changed, 0 insertions, 79 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index a6954776a37e..2bcf4ea40da6 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -12779,7 +12779,6 @@ F: include/linux/regset.h
12779F: include/linux/tracehook.h 12779F: include/linux/tracehook.h
12780F: include/uapi/linux/ptrace.h 12780F: include/uapi/linux/ptrace.h
12781F: include/uapi/linux/ptrace.h 12781F: include/uapi/linux/ptrace.h
12782F: include/asm-generic/ptrace.h
12783F: kernel/ptrace.c 12782F: kernel/ptrace.c
12784F: arch/*/ptrace*.c 12783F: arch/*/ptrace*.c
12785F: arch/*/*/ptrace*.c 12784F: arch/*/*/ptrace*.c
diff --git a/arch/mips/include/asm/ptrace.h b/arch/mips/include/asm/ptrace.h
index b6578611dddb..1e76774b36dd 100644
--- a/arch/mips/include/asm/ptrace.h
+++ b/arch/mips/include/asm/ptrace.h
@@ -56,11 +56,6 @@ static inline unsigned long kernel_stack_pointer(struct pt_regs *regs)
56 return regs->regs[31]; 56 return regs->regs[31];
57} 57}
58 58
59/*
60 * Don't use asm-generic/ptrace.h it defines FP accessors that don't make
61 * sense on MIPS. We rather want an error if they get invoked.
62 */
63
64static inline void instruction_pointer_set(struct pt_regs *regs, 59static inline void instruction_pointer_set(struct pt_regs *regs,
65 unsigned long val) 60 unsigned long val)
66{ 61{
diff --git a/include/asm-generic/ptrace.h b/include/asm-generic/ptrace.h
deleted file mode 100644
index ab16b6cb1028..000000000000
--- a/include/asm-generic/ptrace.h
+++ /dev/null
@@ -1,73 +0,0 @@
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Common low level (register) ptrace helpers
4 *
5 * Copyright 2004-2011 Analog Devices Inc.
6 */
7
8#ifndef __ASM_GENERIC_PTRACE_H__
9#define __ASM_GENERIC_PTRACE_H__
10
11#ifndef __ASSEMBLY__
12
13/* Helpers for working with the instruction pointer */
14#ifndef GET_IP
15#define GET_IP(regs) ((regs)->pc)
16#endif
17#ifndef SET_IP
18#define SET_IP(regs, val) (GET_IP(regs) = (val))
19#endif
20
21static inline unsigned long instruction_pointer(struct pt_regs *regs)
22{
23 return GET_IP(regs);
24}
25static inline void instruction_pointer_set(struct pt_regs *regs,
26 unsigned long val)
27{
28 SET_IP(regs, val);
29}
30
31#ifndef profile_pc
32#define profile_pc(regs) instruction_pointer(regs)
33#endif
34
35/* Helpers for working with the user stack pointer */
36#ifndef GET_USP
37#define GET_USP(regs) ((regs)->usp)
38#endif
39#ifndef SET_USP
40#define SET_USP(regs, val) (GET_USP(regs) = (val))
41#endif
42
43static inline unsigned long user_stack_pointer(struct pt_regs *regs)
44{
45 return GET_USP(regs);
46}
47static inline void user_stack_pointer_set(struct pt_regs *regs,
48 unsigned long val)
49{
50 SET_USP(regs, val);
51}
52
53/* Helpers for working with the frame pointer */
54#ifndef GET_FP
55#define GET_FP(regs) ((regs)->fp)
56#endif
57#ifndef SET_FP
58#define SET_FP(regs, val) (GET_FP(regs) = (val))
59#endif
60
61static inline unsigned long frame_pointer(struct pt_regs *regs)
62{
63 return GET_FP(regs);
64}
65static inline void frame_pointer_set(struct pt_regs *regs,
66 unsigned long val)
67{
68 SET_FP(regs, val);
69}
70
71#endif /* __ASSEMBLY__ */
72
73#endif