diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-12 07:48:54 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-24 12:41:41 -0400 |
commit | e5d89254bf763da35b42a3c65289c9962f7240c2 (patch) | |
tree | 1e981f14fc7d386e4f848e7fbf822f9a773fc2ed /net/batman-adv/translation-table.c | |
parent | 9b4a1159dff76f938aa64f7000621552e4d9ad18 (diff) |
batman-adv: Prefix hard-interface 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.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index 5180d50e909d..bc06af4781b3 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c | |||
@@ -298,7 +298,7 @@ static void tt_prepare_packet_buff(struct bat_priv *bat_priv, | |||
298 | struct hard_iface *primary_if; | 298 | struct hard_iface *primary_if; |
299 | int req_len; | 299 | int req_len; |
300 | 300 | ||
301 | primary_if = primary_if_get_selected(bat_priv); | 301 | primary_if = batadv_primary_if_get_selected(bat_priv); |
302 | 302 | ||
303 | req_len = min_packet_len; | 303 | req_len = min_packet_len; |
304 | req_len += batadv_tt_len(atomic_read(&bat_priv->tt_local_changes)); | 304 | req_len += batadv_tt_len(atomic_read(&bat_priv->tt_local_changes)); |
@@ -313,7 +313,7 @@ static void tt_prepare_packet_buff(struct bat_priv *bat_priv, | |||
313 | min_packet_len, req_len); | 313 | min_packet_len, req_len); |
314 | 314 | ||
315 | if (primary_if) | 315 | if (primary_if) |
316 | hardif_free_ref(primary_if); | 316 | batadv_hardif_free_ref(primary_if); |
317 | } | 317 | } |
318 | 318 | ||
319 | static int tt_changes_fill_buff(struct bat_priv *bat_priv, | 319 | static int tt_changes_fill_buff(struct bat_priv *bat_priv, |
@@ -381,7 +381,7 @@ int batadv_tt_local_seq_print_text(struct seq_file *seq, void *offset) | |||
381 | uint32_t i; | 381 | uint32_t i; |
382 | int ret = 0; | 382 | int ret = 0; |
383 | 383 | ||
384 | primary_if = primary_if_get_selected(bat_priv); | 384 | primary_if = batadv_primary_if_get_selected(bat_priv); |
385 | if (!primary_if) { | 385 | if (!primary_if) { |
386 | ret = seq_printf(seq, | 386 | ret = seq_printf(seq, |
387 | "BATMAN mesh %s disabled - please specify interfaces to enable it\n", | 387 | "BATMAN mesh %s disabled - please specify interfaces to enable it\n", |
@@ -423,7 +423,7 @@ int batadv_tt_local_seq_print_text(struct seq_file *seq, void *offset) | |||
423 | } | 423 | } |
424 | out: | 424 | out: |
425 | if (primary_if) | 425 | if (primary_if) |
426 | hardif_free_ref(primary_if); | 426 | batadv_hardif_free_ref(primary_if); |
427 | return ret; | 427 | return ret; |
428 | } | 428 | } |
429 | 429 | ||
@@ -727,7 +727,7 @@ int batadv_tt_global_seq_print_text(struct seq_file *seq, void *offset) | |||
727 | uint32_t i; | 727 | uint32_t i; |
728 | int ret = 0; | 728 | int ret = 0; |
729 | 729 | ||
730 | primary_if = primary_if_get_selected(bat_priv); | 730 | primary_if = batadv_primary_if_get_selected(bat_priv); |
731 | if (!primary_if) { | 731 | if (!primary_if) { |
732 | ret = seq_printf(seq, | 732 | ret = seq_printf(seq, |
733 | "BATMAN mesh %s disabled - please specify interfaces to enable it\n", | 733 | "BATMAN mesh %s disabled - please specify interfaces to enable it\n", |
@@ -763,7 +763,7 @@ int batadv_tt_global_seq_print_text(struct seq_file *seq, void *offset) | |||
763 | } | 763 | } |
764 | out: | 764 | out: |
765 | if (primary_if) | 765 | if (primary_if) |
766 | hardif_free_ref(primary_if); | 766 | batadv_hardif_free_ref(primary_if); |
767 | return ret; | 767 | return ret; |
768 | } | 768 | } |
769 | 769 | ||
@@ -1370,7 +1370,7 @@ static int send_tt_request(struct bat_priv *bat_priv, | |||
1370 | struct tt_req_node *tt_req_node = NULL; | 1370 | struct tt_req_node *tt_req_node = NULL; |
1371 | int ret = 1; | 1371 | int ret = 1; |
1372 | 1372 | ||
1373 | primary_if = primary_if_get_selected(bat_priv); | 1373 | primary_if = batadv_primary_if_get_selected(bat_priv); |
1374 | if (!primary_if) | 1374 | if (!primary_if) |
1375 | goto out; | 1375 | goto out; |
1376 | 1376 | ||
@@ -1420,7 +1420,7 @@ out: | |||
1420 | if (neigh_node) | 1420 | if (neigh_node) |
1421 | batadv_neigh_node_free_ref(neigh_node); | 1421 | batadv_neigh_node_free_ref(neigh_node); |
1422 | if (primary_if) | 1422 | if (primary_if) |
1423 | hardif_free_ref(primary_if); | 1423 | batadv_hardif_free_ref(primary_if); |
1424 | if (ret) | 1424 | if (ret) |
1425 | kfree_skb(skb); | 1425 | kfree_skb(skb); |
1426 | if (ret && tt_req_node) { | 1426 | if (ret && tt_req_node) { |
@@ -1464,7 +1464,7 @@ static bool send_other_tt_response(struct bat_priv *bat_priv, | |||
1464 | if (!neigh_node) | 1464 | if (!neigh_node) |
1465 | goto out; | 1465 | goto out; |
1466 | 1466 | ||
1467 | primary_if = primary_if_get_selected(bat_priv); | 1467 | primary_if = batadv_primary_if_get_selected(bat_priv); |
1468 | if (!primary_if) | 1468 | if (!primary_if) |
1469 | goto out; | 1469 | goto out; |
1470 | 1470 | ||
@@ -1555,7 +1555,7 @@ out: | |||
1555 | if (neigh_node) | 1555 | if (neigh_node) |
1556 | batadv_neigh_node_free_ref(neigh_node); | 1556 | batadv_neigh_node_free_ref(neigh_node); |
1557 | if (primary_if) | 1557 | if (primary_if) |
1558 | hardif_free_ref(primary_if); | 1558 | batadv_hardif_free_ref(primary_if); |
1559 | if (!ret) | 1559 | if (!ret) |
1560 | kfree_skb(skb); | 1560 | kfree_skb(skb); |
1561 | return ret; | 1561 | return ret; |
@@ -1592,7 +1592,7 @@ static bool send_my_tt_response(struct bat_priv *bat_priv, | |||
1592 | if (!neigh_node) | 1592 | if (!neigh_node) |
1593 | goto out; | 1593 | goto out; |
1594 | 1594 | ||
1595 | primary_if = primary_if_get_selected(bat_priv); | 1595 | primary_if = batadv_primary_if_get_selected(bat_priv); |
1596 | if (!primary_if) | 1596 | if (!primary_if) |
1597 | goto out; | 1597 | goto out; |
1598 | 1598 | ||
@@ -1672,7 +1672,7 @@ out: | |||
1672 | if (neigh_node) | 1672 | if (neigh_node) |
1673 | batadv_neigh_node_free_ref(neigh_node); | 1673 | batadv_neigh_node_free_ref(neigh_node); |
1674 | if (primary_if) | 1674 | if (primary_if) |
1675 | hardif_free_ref(primary_if); | 1675 | batadv_hardif_free_ref(primary_if); |
1676 | if (!ret) | 1676 | if (!ret) |
1677 | kfree_skb(skb); | 1677 | kfree_skb(skb); |
1678 | /* This packet was for me, so it doesn't need to be re-routed */ | 1678 | /* This packet was for me, so it doesn't need to be re-routed */ |
@@ -1956,11 +1956,11 @@ static void send_roam_adv(struct bat_priv *bat_priv, uint8_t *client, | |||
1956 | roam_adv_packet->header.packet_type = BAT_ROAM_ADV; | 1956 | roam_adv_packet->header.packet_type = BAT_ROAM_ADV; |
1957 | roam_adv_packet->header.version = COMPAT_VERSION; | 1957 | roam_adv_packet->header.version = COMPAT_VERSION; |
1958 | roam_adv_packet->header.ttl = TTL; | 1958 | roam_adv_packet->header.ttl = TTL; |
1959 | primary_if = primary_if_get_selected(bat_priv); | 1959 | primary_if = batadv_primary_if_get_selected(bat_priv); |
1960 | if (!primary_if) | 1960 | if (!primary_if) |
1961 | goto out; | 1961 | goto out; |
1962 | memcpy(roam_adv_packet->src, primary_if->net_dev->dev_addr, ETH_ALEN); | 1962 | memcpy(roam_adv_packet->src, primary_if->net_dev->dev_addr, ETH_ALEN); |
1963 | hardif_free_ref(primary_if); | 1963 | batadv_hardif_free_ref(primary_if); |
1964 | memcpy(roam_adv_packet->dst, orig_node->orig, ETH_ALEN); | 1964 | memcpy(roam_adv_packet->dst, orig_node->orig, ETH_ALEN); |
1965 | memcpy(roam_adv_packet->client, client, ETH_ALEN); | 1965 | memcpy(roam_adv_packet->client, client, ETH_ALEN); |
1966 | 1966 | ||