Commit b747c8c1 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

make ptrace_untrace() static

ptrace_untrace() can now become static.
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c4596435
...@@ -94,7 +94,6 @@ extern void ptrace_notify(int exit_code); ...@@ -94,7 +94,6 @@ extern void ptrace_notify(int exit_code);
extern void __ptrace_link(struct task_struct *child, extern void __ptrace_link(struct task_struct *child,
struct task_struct *new_parent); struct task_struct *new_parent);
extern void __ptrace_unlink(struct task_struct *child); extern void __ptrace_unlink(struct task_struct *child);
extern void ptrace_untrace(struct task_struct *child);
#define PTRACE_MODE_READ 1 #define PTRACE_MODE_READ 1
#define PTRACE_MODE_ATTACH 2 #define PTRACE_MODE_ATTACH 2
/* Returns 0 on success, -errno on denial. */ /* Returns 0 on success, -errno on denial. */
......
...@@ -45,7 +45,7 @@ void __ptrace_link(struct task_struct *child, struct task_struct *new_parent) ...@@ -45,7 +45,7 @@ void __ptrace_link(struct task_struct *child, struct task_struct *new_parent)
* TASK_TRACED, resume it now. * TASK_TRACED, resume it now.
* Requires that irqs be disabled. * Requires that irqs be disabled.
*/ */
void ptrace_untrace(struct task_struct *child) static void ptrace_untrace(struct task_struct *child)
{ {
spin_lock(&child->sighand->siglock); spin_lock(&child->sighand->siglock);
if (task_is_traced(child)) { if (task_is_traced(child)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment