Tiezhu Yang (3):
ptrace: Remove redudant check of #ifdef PTRACE_SINGLESTEP
ptrace: Fix wrong comment of PT_DTRACE
MAINTAINERS: Remove redundant file of PTRACE SUPPORT entry
MAINTAINERS | 1 -
include/linux/ptrace.h | 2 +-
kernel/ptrace.c | 6 ------
3 files changed, 1 insertion(+), 8 deletions(-)
--
2.1.0
PTRACE_SINGLESTEP is always defined as 9 in include/uapi/linux/ptrace.h,
remove redudant check of #ifdef PTRACE_SINGLESTEP.
Signed-off-by: Tiezhu Yang <[email protected]>
---
kernel/ptrace.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index ccc4b46..49c29ba 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -829,11 +829,7 @@ static long ptrace_get_rseq_configuration(struct task_struct *task,
}
#endif
-#ifdef PTRACE_SINGLESTEP
#define is_singlestep(request) ((request) == PTRACE_SINGLESTEP)
-#else
-#define is_singlestep(request) 0
-#endif
#ifdef PTRACE_SINGLEBLOCK
#define is_singleblock(request) ((request) == PTRACE_SINGLEBLOCK)
@@ -1221,9 +1217,7 @@ int ptrace_request(struct task_struct *child, long request,
}
#endif
-#ifdef PTRACE_SINGLESTEP
case PTRACE_SINGLESTEP:
-#endif
#ifdef PTRACE_SINGLEBLOCK
case PTRACE_SINGLEBLOCK:
#endif
--
2.1.0