Skip to contentSkip to conversation

ptrace: remove linux/compat.h inclusion under CONFIG_COMPAT

PATCH RESEND In review Fabian Frederick 2 participants 2 messages Dec 29, 2014 ptrace support

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 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.

---
 kernel/ptrace.c | 1 -
 1 file changed, 1 deletion(-)
kernel/ptrace.c +0 -1
index 1eb9d90..227fec3 100644
@@ -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)
Signature · 1 line
2.1.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Fabian Frederick

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.

Quoted 19 lines
---
 kernel/ptrace.c | 1 -
 1 file changed, 1 deletion(-)
kernel/ptrace.c +0 -1
index 1eb9d90..227fec3 100644
@@ -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)
Signature · 1 line
2.1.0