summaryrefslogtreecommitdiffstats
path: root/include/net/inet_hashtables.h
diff options
context:
space:
mode:
authorLucian Adrian Grijincu <lgrijincu@ixiacom.com>2009-11-12 05:07:26 +0000
committerDavid S. Miller <davem@davemloft.net>2009-11-13 20:46:56 -0800
commit5256f2ef3a40d784b8369035bff3f4dc637a9801 (patch)
treef588bd4048ea8d21a2dc70e1f8bada886a0af378 /include/net/inet_hashtables.h
parenteec4df9885f7822cdeca82577a25cac4598fa7cf (diff)
downloadop-kernel-dev-5256f2ef3a40d784b8369035bff3f4dc637a9801.zip
op-kernel-dev-5256f2ef3a40d784b8369035bff3f4dc637a9801.tar.gz
inet: fix inet_bind_bucket_for_each
The first "node" is supposed to be the cursor used in the for_each. The second "node" is ment literally and should not be macro expanded: it's the name of the hlist_node field from the inet_bind_bucket. This currently works because when inet_bind_bucket_for_each is called it's argument is still "node". Signed-off-by: Lucian Adrian Grijincu <lgrijincu@ixiacom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_hashtables.h')
-rw-r--r--include/net/inet_hashtables.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h
index 5b698b3..41cbddd 100644
--- a/include/net/inet_hashtables.h
+++ b/include/net/inet_hashtables.h
@@ -92,8 +92,8 @@ static inline struct net *ib_net(struct inet_bind_bucket *ib)
return read_pnet(&ib->ib_net);
}
-#define inet_bind_bucket_for_each(tb, node, head) \
- hlist_for_each_entry(tb, node, head, node)
+#define inet_bind_bucket_for_each(tb, pos, head) \
+ hlist_for_each_entry(tb, pos, head, node)
struct inet_bind_hashbucket {
spinlock_t lock;
OpenPOWER on IntegriCloud