Commit 1d32849b14bc8792e6f35ab27dd990d74b16126c
Committed by
Linus Torvalds
1 parent
ad7a3bf30c
Exists in
master
and in
20 other branches
[PATCH] pid.h cleanup
Make the pid.h macros look less revolting in an 80-col window. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing 1 changed file with 15 additions and 15 deletions Side-by-side Diff
include/linux/pid.h
... | ... | @@ -105,28 +105,28 @@ |
105 | 105 | } |
106 | 106 | |
107 | 107 | |
108 | -#define do_each_task_pid(who, type, task) \ | |
109 | - do { \ | |
110 | - struct hlist_node *pos___; \ | |
111 | - struct pid *pid___ = find_pid(who); \ | |
112 | - if (pid___ != NULL) \ | |
113 | - hlist_for_each_entry_rcu((task), pos___, \ | |
108 | +#define do_each_task_pid(who, type, task) \ | |
109 | + do { \ | |
110 | + struct hlist_node *pos___; \ | |
111 | + struct pid *pid___ = find_pid(who); \ | |
112 | + if (pid___ != NULL) \ | |
113 | + hlist_for_each_entry_rcu((task), pos___, \ | |
114 | 114 | &pid___->tasks[type], pids[type].node) { |
115 | 115 | |
116 | -#define while_each_task_pid(who, type, task) \ | |
117 | - } \ | |
116 | +#define while_each_task_pid(who, type, task) \ | |
117 | + } \ | |
118 | 118 | } while (0) |
119 | 119 | |
120 | 120 | |
121 | -#define do_each_pid_task(pid, type, task) \ | |
122 | - do { \ | |
123 | - struct hlist_node *pos___; \ | |
124 | - if (pid != NULL) \ | |
125 | - hlist_for_each_entry_rcu((task), pos___, \ | |
121 | +#define do_each_pid_task(pid, type, task) \ | |
122 | + do { \ | |
123 | + struct hlist_node *pos___; \ | |
124 | + if (pid != NULL) \ | |
125 | + hlist_for_each_entry_rcu((task), pos___, \ | |
126 | 126 | &pid->tasks[type], pids[type].node) { |
127 | 127 | |
128 | -#define while_each_pid_task(pid, type, task) \ | |
129 | - } \ | |
128 | +#define while_each_pid_task(pid, type, task) \ | |
129 | + } \ | |
130 | 130 | } while (0) |
131 | 131 | |
132 | 132 | #endif /* _LINUX_PID_H */ |