diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-22 19:51:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-23 00:43:41 -0400 |
commit | a1e4891fd48d298870b704c6eb48cba0da5ed6b1 (patch) | |
tree | 96fa29fd0c3803f1d1803e1b979c6ac8345fff5a /net/netlabel | |
parent | 70c71606190e9115e5f8363bfcd164c582eb314a (diff) |
Remove prefetch() from <linux/skbuff.h> and "netlabel_addrlist.h"
Commit e66eed651fd1 ("list: remove prefetching from regular list
iterators") removed the include of prefetch.h from list.h. The skbuff
list traversal still had them.
Quoth David Miller:
"Please just remove the prefetches.
Those are modelled after list.h as I intend to eventually convert
SKB list handling to "struct list_head" but we're not there yet.
Therefore if we kill prefetches from list.h we should kill it from
these things in skbuff.h too."
Requested-by: David Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/netlabel')
-rw-r--r-- | net/netlabel/netlabel_addrlist.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/netlabel/netlabel_addrlist.h b/net/netlabel/netlabel_addrlist.h index 1c1c093cf279..2b9644e19de0 100644 --- a/net/netlabel/netlabel_addrlist.h +++ b/net/netlabel/netlabel_addrlist.h | |||
@@ -96,12 +96,12 @@ static inline struct netlbl_af4list *__af4list_valid_rcu(struct list_head *s, | |||
96 | 96 | ||
97 | #define netlbl_af4list_foreach(iter, head) \ | 97 | #define netlbl_af4list_foreach(iter, head) \ |
98 | for (iter = __af4list_valid((head)->next, head); \ | 98 | for (iter = __af4list_valid((head)->next, head); \ |
99 | prefetch(iter->list.next), &iter->list != (head); \ | 99 | &iter->list != (head); \ |
100 | iter = __af4list_valid(iter->list.next, head)) | 100 | iter = __af4list_valid(iter->list.next, head)) |
101 | 101 | ||
102 | #define netlbl_af4list_foreach_rcu(iter, head) \ | 102 | #define netlbl_af4list_foreach_rcu(iter, head) \ |
103 | for (iter = __af4list_valid_rcu((head)->next, head); \ | 103 | for (iter = __af4list_valid_rcu((head)->next, head); \ |
104 | prefetch(iter->list.next), &iter->list != (head); \ | 104 | &iter->list != (head); \ |
105 | iter = __af4list_valid_rcu(iter->list.next, head)) | 105 | iter = __af4list_valid_rcu(iter->list.next, head)) |
106 | 106 | ||
107 | #define netlbl_af4list_foreach_safe(iter, tmp, head) \ | 107 | #define netlbl_af4list_foreach_safe(iter, tmp, head) \ |
@@ -163,12 +163,12 @@ static inline struct netlbl_af6list *__af6list_valid_rcu(struct list_head *s, | |||
163 | 163 | ||
164 | #define netlbl_af6list_foreach(iter, head) \ | 164 | #define netlbl_af6list_foreach(iter, head) \ |
165 | for (iter = __af6list_valid((head)->next, head); \ | 165 | for (iter = __af6list_valid((head)->next, head); \ |
166 | prefetch(iter->list.next), &iter->list != (head); \ | 166 | &iter->list != (head); \ |
167 | iter = __af6list_valid(iter->list.next, head)) | 167 | iter = __af6list_valid(iter->list.next, head)) |
168 | 168 | ||
169 | #define netlbl_af6list_foreach_rcu(iter, head) \ | 169 | #define netlbl_af6list_foreach_rcu(iter, head) \ |
170 | for (iter = __af6list_valid_rcu((head)->next, head); \ | 170 | for (iter = __af6list_valid_rcu((head)->next, head); \ |
171 | prefetch(iter->list.next), &iter->list != (head); \ | 171 | &iter->list != (head); \ |
172 | iter = __af6list_valid_rcu(iter->list.next, head)) | 172 | iter = __af6list_valid_rcu(iter->list.next, head)) |
173 | 173 | ||
174 | #define netlbl_af6list_foreach_safe(iter, tmp, head) \ | 174 | #define netlbl_af6list_foreach_safe(iter, tmp, head) \ |