Re: [PATCH 1/1 linux-next] ptrace: remove linux/compat.h inclusion under CONFIG_COMPAT

From: Oleg Nesterov
Date: Wed Sep 17 2014 - 13:41:26 EST


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@xxxxxxxxx>

Acked-by: Oleg Nesterov <oleg@xxxxxxxxxx>

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
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/