From: Eric W. Biederman Now that I have changed all of the users remove the old version of these functions. This should be a clear hint to any out of tree users that they should use do_each_pid_task and while_each_pid_task for new code. Signed-off-by: Eric W. Biederman Cc: Alan Cox Cc: Oleg Nesterov Signed-off-by: Andrew Morton --- include/linux/pid.h | 14 -------------- 1 files changed, 14 deletions(-) diff -puN include/linux/pid.h~pid-remove-now-unused-do_each_task_pid-and-while_each_task_pid include/linux/pid.h --- a/include/linux/pid.h~pid-remove-now-unused-do_each_task_pid-and-while_each_task_pid +++ a/include/linux/pid.h @@ -105,20 +105,6 @@ static inline pid_t pid_nr(struct pid *p return nr; } - -#define do_each_task_pid(who, type, task) \ - do { \ - struct hlist_node *pos___; \ - struct pid *pid___ = find_pid(who); \ - if (pid___ != NULL) \ - hlist_for_each_entry_rcu((task), pos___, \ - &pid___->tasks[type], pids[type].node) { - -#define while_each_task_pid(who, type, task) \ - } \ - } while (0) - - #define do_each_pid_task(pid, type, task) \ do { \ struct hlist_node *pos___; \ _