diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-06-05 16:31:28 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-07-01 16:47:20 -0400 |
commit | 5bf74e9ca1e618afe5a513f64ee4923115e67004 (patch) | |
tree | 6534af43c249344deaf881006b27240fb77ee4c2 /net/batman-adv/bridge_loop_avoidance.c | |
parent | 7f223c0c323a9ac2e88714669994007776e966a8 (diff) |
batman-adv: Prefix hash struct and typedef with batadv_
Reported-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/bridge_loop_avoidance.c')
-rw-r--r-- | net/batman-adv/bridge_loop_avoidance.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index b463402281b1..8bd70501b1e0 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c | |||
@@ -133,7 +133,7 @@ static void batadv_claim_free_ref(struct claim *claim) | |||
133 | static struct claim *batadv_claim_hash_find(struct bat_priv *bat_priv, | 133 | static struct claim *batadv_claim_hash_find(struct bat_priv *bat_priv, |
134 | struct claim *data) | 134 | struct claim *data) |
135 | { | 135 | { |
136 | struct hashtable_t *hash = bat_priv->claim_hash; | 136 | struct batadv_hashtable *hash = bat_priv->claim_hash; |
137 | struct hlist_head *head; | 137 | struct hlist_head *head; |
138 | struct hlist_node *node; | 138 | struct hlist_node *node; |
139 | struct claim *claim; | 139 | struct claim *claim; |
@@ -172,7 +172,7 @@ static struct claim *batadv_claim_hash_find(struct bat_priv *bat_priv, | |||
172 | static struct backbone_gw *batadv_backbone_hash_find(struct bat_priv *bat_priv, | 172 | static struct backbone_gw *batadv_backbone_hash_find(struct bat_priv *bat_priv, |
173 | uint8_t *addr, short vid) | 173 | uint8_t *addr, short vid) |
174 | { | 174 | { |
175 | struct hashtable_t *hash = bat_priv->backbone_hash; | 175 | struct batadv_hashtable *hash = bat_priv->backbone_hash; |
176 | struct hlist_head *head; | 176 | struct hlist_head *head; |
177 | struct hlist_node *node; | 177 | struct hlist_node *node; |
178 | struct backbone_gw search_entry, *backbone_gw; | 178 | struct backbone_gw search_entry, *backbone_gw; |
@@ -208,7 +208,7 @@ static struct backbone_gw *batadv_backbone_hash_find(struct bat_priv *bat_priv, | |||
208 | /* delete all claims for a backbone */ | 208 | /* delete all claims for a backbone */ |
209 | static void batadv_bla_del_backbone_claims(struct backbone_gw *backbone_gw) | 209 | static void batadv_bla_del_backbone_claims(struct backbone_gw *backbone_gw) |
210 | { | 210 | { |
211 | struct hashtable_t *hash; | 211 | struct batadv_hashtable *hash; |
212 | struct hlist_node *node, *node_tmp; | 212 | struct hlist_node *node, *node_tmp; |
213 | struct hlist_head *head; | 213 | struct hlist_head *head; |
214 | struct claim *claim; | 214 | struct claim *claim; |
@@ -434,7 +434,7 @@ static void batadv_bla_answer_request(struct bat_priv *bat_priv, | |||
434 | { | 434 | { |
435 | struct hlist_node *node; | 435 | struct hlist_node *node; |
436 | struct hlist_head *head; | 436 | struct hlist_head *head; |
437 | struct hashtable_t *hash; | 437 | struct batadv_hashtable *hash; |
438 | struct claim *claim; | 438 | struct claim *claim; |
439 | struct backbone_gw *backbone_gw; | 439 | struct backbone_gw *backbone_gw; |
440 | int i; | 440 | int i; |
@@ -931,7 +931,7 @@ static void batadv_bla_purge_backbone_gw(struct bat_priv *bat_priv, int now) | |||
931 | struct backbone_gw *backbone_gw; | 931 | struct backbone_gw *backbone_gw; |
932 | struct hlist_node *node, *node_tmp; | 932 | struct hlist_node *node, *node_tmp; |
933 | struct hlist_head *head; | 933 | struct hlist_head *head; |
934 | struct hashtable_t *hash; | 934 | struct batadv_hashtable *hash; |
935 | spinlock_t *list_lock; /* protects write access to the hash lists */ | 935 | spinlock_t *list_lock; /* protects write access to the hash lists */ |
936 | int i; | 936 | int i; |
937 | 937 | ||
@@ -983,7 +983,7 @@ static void batadv_bla_purge_claims(struct bat_priv *bat_priv, | |||
983 | struct claim *claim; | 983 | struct claim *claim; |
984 | struct hlist_node *node; | 984 | struct hlist_node *node; |
985 | struct hlist_head *head; | 985 | struct hlist_head *head; |
986 | struct hashtable_t *hash; | 986 | struct batadv_hashtable *hash; |
987 | int i; | 987 | int i; |
988 | 988 | ||
989 | hash = bat_priv->claim_hash; | 989 | hash = bat_priv->claim_hash; |
@@ -1030,7 +1030,7 @@ void batadv_bla_update_orig_address(struct bat_priv *bat_priv, | |||
1030 | struct backbone_gw *backbone_gw; | 1030 | struct backbone_gw *backbone_gw; |
1031 | struct hlist_node *node; | 1031 | struct hlist_node *node; |
1032 | struct hlist_head *head; | 1032 | struct hlist_head *head; |
1033 | struct hashtable_t *hash; | 1033 | struct batadv_hashtable *hash; |
1034 | int i; | 1034 | int i; |
1035 | 1035 | ||
1036 | /* reset bridge loop avoidance group id */ | 1036 | /* reset bridge loop avoidance group id */ |
@@ -1091,7 +1091,7 @@ static void batadv_bla_periodic_work(struct work_struct *work) | |||
1091 | struct hlist_node *node; | 1091 | struct hlist_node *node; |
1092 | struct hlist_head *head; | 1092 | struct hlist_head *head; |
1093 | struct backbone_gw *backbone_gw; | 1093 | struct backbone_gw *backbone_gw; |
1094 | struct hashtable_t *hash; | 1094 | struct batadv_hashtable *hash; |
1095 | struct hard_iface *primary_if; | 1095 | struct hard_iface *primary_if; |
1096 | int i; | 1096 | int i; |
1097 | 1097 | ||
@@ -1262,7 +1262,7 @@ int batadv_bla_check_bcast_duplist(struct bat_priv *bat_priv, | |||
1262 | */ | 1262 | */ |
1263 | int batadv_bla_is_backbone_gw_orig(struct bat_priv *bat_priv, uint8_t *orig) | 1263 | int batadv_bla_is_backbone_gw_orig(struct bat_priv *bat_priv, uint8_t *orig) |
1264 | { | 1264 | { |
1265 | struct hashtable_t *hash = bat_priv->backbone_hash; | 1265 | struct batadv_hashtable *hash = bat_priv->backbone_hash; |
1266 | struct hlist_head *head; | 1266 | struct hlist_head *head; |
1267 | struct hlist_node *node; | 1267 | struct hlist_node *node; |
1268 | struct backbone_gw *backbone_gw; | 1268 | struct backbone_gw *backbone_gw; |
@@ -1534,7 +1534,7 @@ int batadv_bla_claim_table_seq_print_text(struct seq_file *seq, void *offset) | |||
1534 | { | 1534 | { |
1535 | struct net_device *net_dev = (struct net_device *)seq->private; | 1535 | struct net_device *net_dev = (struct net_device *)seq->private; |
1536 | struct bat_priv *bat_priv = netdev_priv(net_dev); | 1536 | struct bat_priv *bat_priv = netdev_priv(net_dev); |
1537 | struct hashtable_t *hash = bat_priv->claim_hash; | 1537 | struct batadv_hashtable *hash = bat_priv->claim_hash; |
1538 | struct claim *claim; | 1538 | struct claim *claim; |
1539 | struct hard_iface *primary_if; | 1539 | struct hard_iface *primary_if; |
1540 | struct hlist_node *node; | 1540 | struct hlist_node *node; |