All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org, oleg@redhat.com,
	yangtiezhu@loongson.cn, akpm@linux-foundation.org
Subject: + ptrace-remove-redudant-check-of-ifdef-ptrace_singlestep.patch added to -mm tree
Date: Wed, 06 Apr 2022 12:25:57 -0700	[thread overview]
Message-ID: <20220406192558.AF84EC385A5@smtp.kernel.org> (raw)


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


                 reply	other threads:[~2022-04-06 20:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220406192558.AF84EC385A5@smtp.kernel.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=oleg@redhat.com \
    --cc=yangtiezhu@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.