diff options
author | Tejun Heo <tj@kernel.org> | 2011-06-17 10:50:34 -0400 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2011-06-22 13:26:27 -0400 |
commit | d21142ece414ce1088cfcae760689aa60d6fee80 (patch) | |
tree | 9f97b4518cd06fe695476fc6cc4ff9ed8d5bdd58 /include/linux/ptrace.h | |
parent | 544b2c91a9f14f9565af1972203438b7f49afd48 (diff) |
ptrace: kill task_ptrace()
task_ptrace(task) simply dereferences task->ptrace and isn't even used
consistently only adding confusion. Kill it and directly access
->ptrace instead.
This doesn't introduce any behavior change.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'include/linux/ptrace.h')
-rw-r--r-- | include/linux/ptrace.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h index 4f224f169524..3ff20b322598 100644 --- a/include/linux/ptrace.h +++ b/include/linux/ptrace.h | |||
@@ -146,17 +146,6 @@ int generic_ptrace_pokedata(struct task_struct *tsk, unsigned long addr, | |||
146 | unsigned long data); | 146 | unsigned long data); |
147 | 147 | ||
148 | /** | 148 | /** |
149 | * task_ptrace - return %PT_* flags that apply to a task | ||
150 | * @task: pointer to &task_struct in question | ||
151 | * | ||
152 | * Returns the %PT_* flags that apply to @task. | ||
153 | */ | ||
154 | static inline int task_ptrace(struct task_struct *task) | ||
155 | { | ||
156 | return task->ptrace; | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * ptrace_event - possibly stop for a ptrace event notification | 149 | * ptrace_event - possibly stop for a ptrace event notification |
161 | * @mask: %PT_* bit to check in @current->ptrace | 150 | * @mask: %PT_* bit to check in @current->ptrace |
162 | * @event: %PTRACE_EVENT_* value to report if @mask is set | 151 | * @event: %PTRACE_EVENT_* value to report if @mask is set |