diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:42 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:32 -0400 |
commit | 3193e8fdfa355289892661d206d1954114a7be95 (patch) | |
tree | 4fce7c85cd572389433a128db0ed180a3928e968 /net/batman-adv/translation-table.c | |
parent | d0f714f472967577067853acc8dabe0abc75ae8f (diff) |
batman-adv: Prefix main 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index ecef827ae28f..66e11b58312e 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c | |||
@@ -48,7 +48,7 @@ static int compare_tt(const struct hlist_node *node, const void *data2) | |||
48 | static void tt_start_timer(struct bat_priv *bat_priv) | 48 | static void tt_start_timer(struct bat_priv *bat_priv) |
49 | { | 49 | { |
50 | INIT_DELAYED_WORK(&bat_priv->tt_work, tt_purge); | 50 | INIT_DELAYED_WORK(&bat_priv->tt_work, tt_purge); |
51 | queue_delayed_work(bat_event_workqueue, &bat_priv->tt_work, | 51 | queue_delayed_work(batadv_event_workqueue, &bat_priv->tt_work, |
52 | msecs_to_jiffies(5000)); | 52 | msecs_to_jiffies(5000)); |
53 | } | 53 | } |
54 | 54 | ||
@@ -1673,7 +1673,7 @@ out: | |||
1673 | bool batadv_send_tt_response(struct bat_priv *bat_priv, | 1673 | bool batadv_send_tt_response(struct bat_priv *bat_priv, |
1674 | struct tt_query_packet *tt_request) | 1674 | struct tt_query_packet *tt_request) |
1675 | { | 1675 | { |
1676 | if (is_my_mac(tt_request->dst)) { | 1676 | if (batadv_is_my_mac(tt_request->dst)) { |
1677 | /* don't answer backbone gws! */ | 1677 | /* don't answer backbone gws! */ |
1678 | if (batadv_bla_is_backbone_gw_orig(bat_priv, tt_request->src)) | 1678 | if (batadv_bla_is_backbone_gw_orig(bat_priv, tt_request->src)) |
1679 | return true; | 1679 | return true; |