aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/translation-table.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-12 07:48:56 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-24 12:41:41 -0400
commitda641193dd3117ccd408dc589a131f16286b0da0 (patch)
treeb819cd7c61837e6c7c889e76fb9a38f6c83d4f54 /net/batman-adv/translation-table.c
parentc0a559295eb2601602f7dc88f4240afcd666f73a (diff)
batman-adv: Prefix originator static inline functions with batadv_
All non-static symbols of batman-adv were prefixed with batadv_ to avoid collisions with other symbols of the kernel. Other symbols of batman-adv should use the same prefix to keep the naming scheme consistent. Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/translation-table.c')
-rw-r--r--net/batman-adv/translation-table.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index 72a8548515ae..1dfa2311bb1b 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -61,7 +61,7 @@ static struct tt_common_entry *tt_hash_find(struct hashtable_t *hash,
61 if (!hash) 61 if (!hash)
62 return NULL; 62 return NULL;
63 63
64 index = choose_orig(data, hash->size); 64 index = batadv_choose_orig(data, hash->size);
65 head = &hash->table[index]; 65 head = &hash->table[index];
66 66
67 rcu_read_lock(); 67 rcu_read_lock();
@@ -235,7 +235,8 @@ void batadv_tt_local_add(struct net_device *soft_iface, const uint8_t *addr,
235 tt_local_entry->common.flags |= TT_CLIENT_NEW; 235 tt_local_entry->common.flags |= TT_CLIENT_NEW;
236 236
237 hash_added = batadv_hash_add(bat_priv->tt_local_hash, compare_tt, 237 hash_added = batadv_hash_add(bat_priv->tt_local_hash, compare_tt,
238 choose_orig, &tt_local_entry->common, 238 batadv_choose_orig,
239 &tt_local_entry->common,
239 &tt_local_entry->common.hash_entry); 240 &tt_local_entry->common.hash_entry);
240 241
241 if (unlikely(hash_added != 0)) { 242 if (unlikely(hash_added != 0)) {
@@ -639,7 +640,7 @@ int batadv_tt_global_add(struct bat_priv *bat_priv, struct orig_node *orig_node,
639 spin_lock_init(&tt_global_entry->list_lock); 640 spin_lock_init(&tt_global_entry->list_lock);
640 641
641 hash_added = batadv_hash_add(bat_priv->tt_global_hash, 642 hash_added = batadv_hash_add(bat_priv->tt_global_hash,
642 compare_tt, choose_orig, 643 compare_tt, batadv_choose_orig,
643 common, &common->hash_entry); 644 common, &common->hash_entry);
644 645
645 if (unlikely(hash_added != 0)) { 646 if (unlikely(hash_added != 0)) {
@@ -818,8 +819,8 @@ static void tt_global_del_struct(struct bat_priv *bat_priv,
818 "Deleting global tt entry %pM: %s\n", 819 "Deleting global tt entry %pM: %s\n",
819 tt_global_entry->common.addr, message); 820 tt_global_entry->common.addr, message);
820 821
821 batadv_hash_remove(bat_priv->tt_global_hash, compare_tt, choose_orig, 822 batadv_hash_remove(bat_priv->tt_global_hash, compare_tt,
822 tt_global_entry->common.addr); 823 batadv_choose_orig, tt_global_entry->common.addr);
823 tt_global_entry_free_ref(tt_global_entry); 824 tt_global_entry_free_ref(tt_global_entry);
824 825
825} 826}
@@ -1454,11 +1455,11 @@ static bool send_other_tt_response(struct bat_priv *bat_priv,
1454 (tt_request->flags & TT_FULL_TABLE ? 'F' : '.')); 1455 (tt_request->flags & TT_FULL_TABLE ? 'F' : '.'));
1455 1456
1456 /* Let's get the orig node of the REAL destination */ 1457 /* Let's get the orig node of the REAL destination */
1457 req_dst_orig_node = orig_hash_find(bat_priv, tt_request->dst); 1458 req_dst_orig_node = batadv_orig_hash_find(bat_priv, tt_request->dst);
1458 if (!req_dst_orig_node) 1459 if (!req_dst_orig_node)
1459 goto out; 1460 goto out;
1460 1461
1461 res_dst_orig_node = orig_hash_find(bat_priv, tt_request->src); 1462 res_dst_orig_node = batadv_orig_hash_find(bat_priv, tt_request->src);
1462 if (!res_dst_orig_node) 1463 if (!res_dst_orig_node)
1463 goto out; 1464 goto out;
1464 1465
@@ -1586,7 +1587,7 @@ static bool send_my_tt_response(struct bat_priv *bat_priv,
1586 my_ttvn = (uint8_t)atomic_read(&bat_priv->ttvn); 1587 my_ttvn = (uint8_t)atomic_read(&bat_priv->ttvn);
1587 req_ttvn = tt_request->ttvn; 1588 req_ttvn = tt_request->ttvn;
1588 1589
1589 orig_node = orig_hash_find(bat_priv, tt_request->src); 1590 orig_node = batadv_orig_hash_find(bat_priv, tt_request->src);
1590 if (!orig_node) 1591 if (!orig_node)
1591 goto out; 1592 goto out;
1592 1593
@@ -1731,7 +1732,7 @@ static void tt_fill_gtable(struct bat_priv *bat_priv,
1731{ 1732{
1732 struct orig_node *orig_node = NULL; 1733 struct orig_node *orig_node = NULL;
1733 1734
1734 orig_node = orig_hash_find(bat_priv, tt_response->src); 1735 orig_node = batadv_orig_hash_find(bat_priv, tt_response->src);
1735 if (!orig_node) 1736 if (!orig_node)
1736 goto out; 1737 goto out;
1737 1738
@@ -1804,7 +1805,7 @@ void batadv_handle_tt_response(struct bat_priv *bat_priv,
1804 if (batadv_bla_is_backbone_gw_orig(bat_priv, tt_response->src)) 1805 if (batadv_bla_is_backbone_gw_orig(bat_priv, tt_response->src))
1805 goto out; 1806 goto out;
1806 1807
1807 orig_node = orig_hash_find(bat_priv, tt_response->src); 1808 orig_node = batadv_orig_hash_find(bat_priv, tt_response->src);
1808 if (!orig_node) 1809 if (!orig_node)
1809 goto out; 1810 goto out;
1810 1811