mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 21:03:32 +00:00
ptrace: remove redudant check of #ifdef PTRACE_SINGLESTEP
Patch series "ptrace: do some cleanup". This patch (of 3): PTRACE_SINGLESTEP is always defined as 9 in include/uapi/linux/ptrace.h, remove redudant check of #ifdef PTRACE_SINGLESTEP. Link: https://lkml.kernel.org/r/1649240981-11024-2-git-send-email-yangtiezhu@loongson.cn Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Cc: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
183c3237c9
commit
f26b2afd53
1 changed files with 0 additions and 6 deletions
|
@ -829,11 +829,7 @@ static long ptrace_get_rseq_configuration(struct task_struct *task,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PTRACE_SINGLESTEP
|
|
||||||
#define is_singlestep(request) ((request) == PTRACE_SINGLESTEP)
|
#define is_singlestep(request) ((request) == PTRACE_SINGLESTEP)
|
||||||
#else
|
|
||||||
#define is_singlestep(request) 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef PTRACE_SINGLEBLOCK
|
#ifdef PTRACE_SINGLEBLOCK
|
||||||
#define is_singleblock(request) ((request) == PTRACE_SINGLEBLOCK)
|
#define is_singleblock(request) ((request) == PTRACE_SINGLEBLOCK)
|
||||||
|
@ -1221,9 +1217,7 @@ int ptrace_request(struct task_struct *child, long request,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PTRACE_SINGLESTEP
|
|
||||||
case PTRACE_SINGLESTEP:
|
case PTRACE_SINGLESTEP:
|
||||||
#endif
|
|
||||||
#ifdef PTRACE_SINGLEBLOCK
|
#ifdef PTRACE_SINGLEBLOCK
|
||||||
case PTRACE_SINGLEBLOCK:
|
case PTRACE_SINGLEBLOCK:
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue