aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/translation-table.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-11 20:09:37 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-20 16:15:26 -0400
commit9455e34cb2ded22e01abb6daa65ba1caeed8d7fe (patch)
tree56ac8dc90b5bcddcace5eea383b266e9654ecb2d /net/batman-adv/translation-table.c
parent30d3c5113f9a3f162d65d01b771b122afac0ce79 (diff)
batman-adv: Prefix send non-static functions with batadv_
batman-adv can be compiled as part of the kernel instead of an module. In that case the linker will see all non-static symbols of batman-adv and all other non-static symbols of the kernel. This could lead to symbol collisions. A prefix for the batman-adv symbols that defines their private namespace avoids such a problem. Reported-by: David Miller <davem@davemloft.net> 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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index 3d2c3b142cf1..445dc25ceba1 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -1406,7 +1406,7 @@ static int send_tt_request(struct bat_priv *bat_priv,
1406 1406
1407 batadv_inc_counter(bat_priv, BAT_CNT_TT_REQUEST_TX); 1407 batadv_inc_counter(bat_priv, BAT_CNT_TT_REQUEST_TX);
1408 1408
1409 send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr); 1409 batadv_send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr);
1410 ret = 0; 1410 ret = 0;
1411 1411
1412out: 1412out:
@@ -1532,7 +1532,7 @@ static bool send_other_tt_response(struct bat_priv *bat_priv,
1532 1532
1533 batadv_inc_counter(bat_priv, BAT_CNT_TT_RESPONSE_TX); 1533 batadv_inc_counter(bat_priv, BAT_CNT_TT_RESPONSE_TX);
1534 1534
1535 send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr); 1535 batadv_send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr);
1536 ret = true; 1536 ret = true;
1537 goto out; 1537 goto out;
1538 1538
@@ -1650,7 +1650,7 @@ static bool send_my_tt_response(struct bat_priv *bat_priv,
1650 1650
1651 batadv_inc_counter(bat_priv, BAT_CNT_TT_RESPONSE_TX); 1651 batadv_inc_counter(bat_priv, BAT_CNT_TT_RESPONSE_TX);
1652 1652
1653 send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr); 1653 batadv_send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr);
1654 ret = true; 1654 ret = true;
1655 goto out; 1655 goto out;
1656 1656
@@ -1957,7 +1957,7 @@ static void send_roam_adv(struct bat_priv *bat_priv, uint8_t *client,
1957 1957
1958 batadv_inc_counter(bat_priv, BAT_CNT_TT_ROAM_ADV_TX); 1958 batadv_inc_counter(bat_priv, BAT_CNT_TT_ROAM_ADV_TX);
1959 1959
1960 send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr); 1960 batadv_send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr);
1961 ret = 0; 1961 ret = 0;
1962 1962
1963out: 1963out: