]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
[PATCH] pid: remove now unused do_each_task_pid and while_each_task_pid
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 12 Feb 2007 08:53:02 +0000 (00:53 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:32 +0000 (09:48 -0800)
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 <ebiederm@xmission.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/pid.h

index 4dec047b1837f1d7e365d1127dbbc68e4937d201..2ac27f9997dd99b00324cb50419b13d2e1b0b139 100644 (file)
@@ -105,20 +105,6 @@ static inline pid_t pid_nr(struct pid *pid)
        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___;                              \