* + ptrace-remove-redudant-check-of-ifdef-ptrace_singlestep.patch added to -mm tree
@ 2022-04-06 19:25 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-04-06 19:25 UTC (permalink / raw)
To: mm-commits, oleg, yangtiezhu, akpm
The patch titled
Subject: ptrace: remove redudant check of #ifdef PTRACE_SINGLESTEP
has been added to the -mm tree. Its filename is
ptrace-remove-redudant-check-of-ifdef-ptrace_singlestep.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/ptrace-remove-redudant-check-of-ifdef-ptrace_singlestep.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/ptrace-remove-redudant-check-of-ifdef-ptrace_singlestep.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Tiezhu Yang <yangtiezhu@loongson.cn>
Subject: 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>
---
kernel/ptrace.c | 6 ------
1 file changed, 6 deletions(-)
--- a/kernel/ptrace.c~ptrace-remove-redudant-check-of-ifdef-ptrace_singlestep
+++ a/kernel/ptrace.c
@@ -829,11 +829,7 @@ static long ptrace_get_rseq_configuratio
}
#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 *c
}
#endif
-#ifdef PTRACE_SINGLESTEP
case PTRACE_SINGLESTEP:
-#endif
#ifdef PTRACE_SINGLEBLOCK
case PTRACE_SINGLEBLOCK:
#endif
_
Patches currently in -mm which might be from yangtiezhu@loongson.cn are
ptrace-remove-redudant-check-of-ifdef-ptrace_singlestep.patch
ptrace-fix-wrong-comment-of-pt_dtrace.patch
maintainers-remove-redundant-file-of-ptrace-support-entry.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-06 20:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-06 19:25 + ptrace-remove-redudant-check-of-ifdef-ptrace_singlestep.patch added to -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.