From: Adrian Bunk ptrace_untrace() can now become static. Signed-off-by: Adrian Bunk Cc: Oleg Nesterov Cc: Roland McGrath Signed-off-by: Andrew Morton --- include/linux/ptrace.h | 1 - kernel/ptrace.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff -puN include/linux/ptrace.h~make-ptrace_untrace-static include/linux/ptrace.h --- a/include/linux/ptrace.h~make-ptrace_untrace-static +++ a/include/linux/ptrace.h @@ -94,7 +94,6 @@ extern void ptrace_notify(int exit_code) extern void __ptrace_link(struct task_struct *child, struct task_struct *new_parent); extern void __ptrace_unlink(struct task_struct *child); -extern void ptrace_untrace(struct task_struct *child); #define PTRACE_MODE_READ 1 #define PTRACE_MODE_ATTACH 2 /* Returns 0 on success, -errno on denial. */ diff -puN kernel/ptrace.c~make-ptrace_untrace-static kernel/ptrace.c --- a/kernel/ptrace.c~make-ptrace_untrace-static +++ a/kernel/ptrace.c @@ -45,7 +45,7 @@ void __ptrace_link(struct task_struct *c * TASK_TRACED, resume it now. * 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); if (task_is_traced(child)) { _