LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 1/1 RESEND] ptrace: remove linux/compat.h inclusion under CONFIG_COMPAT
@ 2014-12-29 10:20 Fabian Frederick
2014-12-29 13:16 ` Oleg Nesterov
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2014-12-29 10:20 UTC (permalink / raw)
To: linux-kernel
Cc: Andrew Morton, Fabian Frederick, Roland McGrath, Oleg Nesterov
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>
---
kernel/ptrace.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index 1eb9d90..227fec3 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -1077,7 +1077,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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1 RESEND] ptrace: remove linux/compat.h inclusion under CONFIG_COMPAT
2014-12-29 10:20 [PATCH 1/1 RESEND] ptrace: remove linux/compat.h inclusion under CONFIG_COMPAT Fabian Frederick
@ 2014-12-29 13:16 ` Oleg Nesterov
0 siblings, 0 replies; 2+ messages in thread
From: Oleg Nesterov @ 2014-12-29 13:16 UTC (permalink / raw)
To: Fabian Frederick; +Cc: linux-kernel, Andrew Morton, Roland McGrath
On 12/29, 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>
> ---
> kernel/ptrace.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/kernel/ptrace.c b/kernel/ptrace.c
> index 1eb9d90..227fec3 100644
> --- a/kernel/ptrace.c
> +++ b/kernel/ptrace.c
> @@ -1077,7 +1077,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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-29 13:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-29 10:20 [PATCH 1/1 RESEND] ptrace: remove linux/compat.h inclusion under CONFIG_COMPAT Fabian Frederick
2014-12-29 13:16 ` Oleg Nesterov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).