Commit 19b0cfcca41dd772065671ad0584e1cea0f3fd13

Authored by Pavel Emelyanov
Committed by Linus Torvalds
1 parent 33166b1ffc

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: Pavel Emelyanov <xemul@openvz.org>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 2 changed files with 0 additions and 13 deletions Side-by-side Diff

include/linux/sched.h
... ... @@ -1800,7 +1800,6 @@
1800 1800 extern void force_sig_specific(int, struct task_struct *);
1801 1801 extern int send_sig(int, struct task_struct *, int);
1802 1802 extern void zap_other_threads(struct task_struct *p);
1803   -extern int kill_proc(pid_t, int, int);
1804 1803 extern struct sigqueue *sigqueue_alloc(void);
1805 1804 extern void sigqueue_free(struct sigqueue *);
1806 1805 extern int send_sigqueue(struct sigqueue *, struct task_struct *, int group);
... ... @@ -1228,17 +1228,6 @@
1228 1228 }
1229 1229 EXPORT_SYMBOL(kill_pid);
1230 1230  
1231   -int
1232   -kill_proc(pid_t pid, int sig, int priv)
1233   -{
1234   - int ret;
1235   -
1236   - rcu_read_lock();
1237   - ret = kill_pid_info(sig, __si_special(priv), find_pid(pid));
1238   - rcu_read_unlock();
1239   - return ret;
1240   -}
1241   -
1242 1231 /*
1243 1232 * These functions support sending signals using preallocated sigqueue
1244 1233 * structures. This is needed "because realtime applications cannot
... ... @@ -1906,7 +1895,6 @@
1906 1895 EXPORT_SYMBOL_GPL(dequeue_signal);
1907 1896 EXPORT_SYMBOL(flush_signals);
1908 1897 EXPORT_SYMBOL(force_sig);
1909   -EXPORT_SYMBOL(kill_proc);
1910 1898 EXPORT_SYMBOL(ptrace_notify);
1911 1899 EXPORT_SYMBOL(send_sig);
1912 1900 EXPORT_SYMBOL(send_sig_info);