diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-02-17 16:45:39 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-17 17:34:51 -0500 |
commit | 1cca3385e6d556cd90cdc148c2f26af807fa3600 (patch) | |
tree | 7fc6da464fba51dd75b6fa760f701a4f2244f6d1 /kernel | |
parent | d6bd428275f3f470fc7cf6624b737c6d7805b44b (diff) |
ptrace: remove linux/compat.h inclusion under CONFIG_COMPAT
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/ptrace.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 1eb9d90c3af9..227fec36b12a 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
@@ -1077,7 +1077,6 @@ int generic_ptrace_pokedata(struct task_struct *tsk, unsigned long addr, | |||
1077 | } | 1077 | } |
1078 | 1078 | ||
1079 | #if defined CONFIG_COMPAT | 1079 | #if defined CONFIG_COMPAT |
1080 | #include <linux/compat.h> | ||
1081 | 1080 | ||
1082 | int compat_ptrace_request(struct task_struct *child, compat_long_t request, | 1081 | int compat_ptrace_request(struct task_struct *child, compat_long_t request, |
1083 | compat_ulong_t addr, compat_ulong_t data) | 1082 | compat_ulong_t addr, compat_ulong_t data) |