Skip to content

Commit

Permalink
[PATCH] pid.h cleanup
Browse files Browse the repository at this point in the history
Make the pid.h macros look less revolting in an 80-col window.

Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Oct 3, 2006
1 parent ad7a3bf commit 1d32849
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions include/linux/pid.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,28 +105,28 @@ static inline pid_t pid_nr(struct pid *pid)
}


#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___, \
#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) \
} \
#define while_each_task_pid(who, type, task) \
} \
} while (0)


#define do_each_pid_task(pid, type, task) \
do { \
struct hlist_node *pos___; \
if (pid != NULL) \
hlist_for_each_entry_rcu((task), pos___, \
#define do_each_pid_task(pid, type, task) \
do { \
struct hlist_node *pos___; \
if (pid != NULL) \
hlist_for_each_entry_rcu((task), pos___, \
&pid->tasks[type], pids[type].node) {

#define while_each_pid_task(pid, type, task) \
} \
#define while_each_pid_task(pid, type, task) \
} \
} while (0)

#endif /* _LINUX_PID_H */

0 comments on commit 1d32849

Please sign in to comment.