mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@redhat.com>
To: Fabian Frederick <fabf@skynet.be>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, Roland McGrath <roland@hack.frob.com>
Subject: Re: [PATCH 1/1 linux-next] ptrace: remove linux/compat.h inclusion under CONFIG_COMPAT
Date: Wed, 17 Sep 2014 19:38:40 +0200	[thread overview]
Message-ID: <20140917173840.GB19308@redhat.com> (raw)
In-Reply-To: <1410896530-18082-1-git-send-email-fabf@skynet.be>

On 09/16, Fabian Frederick wrote:
>
> Commit 84c751bd4aeb
> ("ptrace: add ability to retrieve signals without removing from a queue (v4)")
> includes <linux/compat.h> globally in ptrace.c
>
> This patch removes inclusion under if defined CONFIG_COMPAT.
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>

Acked-by: Oleg Nesterov <oleg@redhat.com>

Hopefully Andrew can take this patch.

> ---
>  kernel/ptrace.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/kernel/ptrace.c b/kernel/ptrace.c
> index 54e7522..d4f8e3e 100644
> --- a/kernel/ptrace.c
> +++ b/kernel/ptrace.c
> @@ -1094,7 +1094,6 @@ int generic_ptrace_pokedata(struct task_struct *tsk, unsigned long addr,
>  }
>  
>  #if defined CONFIG_COMPAT
> -#include <linux/compat.h>
>  
>  int compat_ptrace_request(struct task_struct *child, compat_long_t request,
>  			  compat_ulong_t addr, compat_ulong_t data)
> -- 
> 2.1.0
> 


      reply	other threads:[~2014-09-17 17:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-16 19:42 Fabian Frederick
2014-09-17 17:38 ` Oleg Nesterov [this message]

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=20140917173840.GB19308@redhat.com \
    --to=oleg@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=fabf@skynet.be \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@hack.frob.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®