Commit 19b0cfcc authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Linus Torvalds

pidns: remove now unused kill_proc function

This function operated on a pid_t to kill a task, which is no longer valid
in a containerized system.

It has finally lost all its users and we can safely remove it from the
tree.
Signed-off-by: default avatarPavel Emelyanov <xemul@openvz.org>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 33166b1f
...@@ -1800,7 +1800,6 @@ extern void force_sig(int, struct task_struct *); ...@@ -1800,7 +1800,6 @@ extern void force_sig(int, struct task_struct *);
extern void force_sig_specific(int, struct task_struct *); extern void force_sig_specific(int, struct task_struct *);
extern int send_sig(int, struct task_struct *, int); extern int send_sig(int, struct task_struct *, int);
extern void zap_other_threads(struct task_struct *p); extern void zap_other_threads(struct task_struct *p);
extern int kill_proc(pid_t, int, int);
extern struct sigqueue *sigqueue_alloc(void); extern struct sigqueue *sigqueue_alloc(void);
extern void sigqueue_free(struct sigqueue *); extern void sigqueue_free(struct sigqueue *);
extern int send_sigqueue(struct sigqueue *, struct task_struct *, int group); extern int send_sigqueue(struct sigqueue *, struct task_struct *, int group);
......
...@@ -1228,17 +1228,6 @@ int kill_pid(struct pid *pid, int sig, int priv) ...@@ -1228,17 +1228,6 @@ int kill_pid(struct pid *pid, int sig, int priv)
} }
EXPORT_SYMBOL(kill_pid); EXPORT_SYMBOL(kill_pid);
int
kill_proc(pid_t pid, int sig, int priv)
{
int ret;
rcu_read_lock();
ret = kill_pid_info(sig, __si_special(priv), find_pid(pid));
rcu_read_unlock();
return ret;
}
/* /*
* These functions support sending signals using preallocated sigqueue * These functions support sending signals using preallocated sigqueue
* structures. This is needed "because realtime applications cannot * structures. This is needed "because realtime applications cannot
...@@ -1906,7 +1895,6 @@ EXPORT_SYMBOL(recalc_sigpending); ...@@ -1906,7 +1895,6 @@ EXPORT_SYMBOL(recalc_sigpending);
EXPORT_SYMBOL_GPL(dequeue_signal); EXPORT_SYMBOL_GPL(dequeue_signal);
EXPORT_SYMBOL(flush_signals); EXPORT_SYMBOL(flush_signals);
EXPORT_SYMBOL(force_sig); EXPORT_SYMBOL(force_sig);
EXPORT_SYMBOL(kill_proc);
EXPORT_SYMBOL(ptrace_notify); EXPORT_SYMBOL(ptrace_notify);
EXPORT_SYMBOL(send_sig); EXPORT_SYMBOL(send_sig);
EXPORT_SYMBOL(send_sig_info); EXPORT_SYMBOL(send_sig_info);
......
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