aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bridge_loop_avoidance.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-12 07:48:55 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-24 12:41:41 -0400
commitc0a559295eb2601602f7dc88f4240afcd666f73a (patch)
tree1936cd32135d51f0616db90ebc4ee57c34f45790 /net/batman-adv/bridge_loop_avoidance.c
parente5d89254bf763da35b42a3c65289c9962f7240c2 (diff)
batman-adv: Prefix hash 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/bridge_loop_avoidance.c')
-rw-r--r--net/batman-adv/bridge_loop_avoidance.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c
index 72ff8b90e222..7a2dfd41d5c8 100644
--- a/net/batman-adv/bridge_loop_avoidance.c
+++ b/net/batman-adv/bridge_loop_avoidance.c
@@ -379,8 +379,9 @@ static struct backbone_gw *bla_get_backbone_gw(struct bat_priv *bat_priv,
379 /* one for the hash, one for returning */ 379 /* one for the hash, one for returning */
380 atomic_set(&entry->refcount, 2); 380 atomic_set(&entry->refcount, 2);
381 381
382 hash_added = hash_add(bat_priv->backbone_hash, compare_backbone_gw, 382 hash_added = batadv_hash_add(bat_priv->backbone_hash,
383 choose_backbone_gw, entry, &entry->hash_entry); 383 compare_backbone_gw, choose_backbone_gw,
384 entry, &entry->hash_entry);
384 385
385 if (unlikely(hash_added != 0)) { 386 if (unlikely(hash_added != 0)) {
386 /* hash failed, free the structure */ 387 /* hash failed, free the structure */
@@ -540,8 +541,9 @@ static void bla_add_claim(struct bat_priv *bat_priv, const uint8_t *mac,
540 bat_dbg(DBG_BLA, bat_priv, 541 bat_dbg(DBG_BLA, bat_priv,
541 "bla_add_claim(): adding new entry %pM, vid %d to hash ...\n", 542 "bla_add_claim(): adding new entry %pM, vid %d to hash ...\n",
542 mac, vid); 543 mac, vid);
543 hash_added = hash_add(bat_priv->claim_hash, compare_claim, 544 hash_added = batadv_hash_add(bat_priv->claim_hash,
544 choose_claim, claim, &claim->hash_entry); 545 compare_claim, choose_claim,
546 claim, &claim->hash_entry);
545 547
546 if (unlikely(hash_added != 0)) { 548 if (unlikely(hash_added != 0)) {
547 /* only local changes happened. */ 549 /* only local changes happened. */
@@ -590,7 +592,8 @@ static void bla_del_claim(struct bat_priv *bat_priv, const uint8_t *mac,
590 592
591 bat_dbg(DBG_BLA, bat_priv, "bla_del_claim(): %pM, vid %d\n", mac, vid); 593 bat_dbg(DBG_BLA, bat_priv, "bla_del_claim(): %pM, vid %d\n", mac, vid);
592 594
593 hash_remove(bat_priv->claim_hash, compare_claim, choose_claim, claim); 595 batadv_hash_remove(bat_priv->claim_hash, compare_claim, choose_claim,
596 claim);
594 claim_free_ref(claim); /* reference from the hash is gone */ 597 claim_free_ref(claim); /* reference from the hash is gone */
595 598
596 claim->backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN); 599 claim->backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN);