aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/originator.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-11 20:09:29 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-20 16:15:18 -0400
commit7cf06bc6ff810178a7fb9f12aaa6b274fc520f6f (patch)
treed2155e204af6153174f9a7f37596c21e04c65ddb /net/batman-adv/originator.c
parent08adf1512298201a53b88bb0a3d67e0dbbe0ed9b (diff)
batman-adv: Prefix gateway-client 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/originator.c')
-rw-r--r--net/batman-adv/originator.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c
index cf83c5422e9a..2f921bff84a9 100644
--- a/net/batman-adv/originator.c
+++ b/net/batman-adv/originator.c
@@ -361,7 +361,8 @@ static void _purge_orig(struct bat_priv *bat_priv)
361 head, hash_entry) { 361 head, hash_entry) {
362 if (purge_orig_node(bat_priv, orig_node)) { 362 if (purge_orig_node(bat_priv, orig_node)) {
363 if (orig_node->gw_flags) 363 if (orig_node->gw_flags)
364 gw_node_delete(bat_priv, orig_node); 364 batadv_gw_node_delete(bat_priv,
365 orig_node);
365 hlist_del_rcu(node); 366 hlist_del_rcu(node);
366 orig_node_free_ref(orig_node); 367 orig_node_free_ref(orig_node);
367 continue; 368 continue;
@@ -374,8 +375,8 @@ static void _purge_orig(struct bat_priv *bat_priv)
374 spin_unlock_bh(list_lock); 375 spin_unlock_bh(list_lock);
375 } 376 }
376 377
377 gw_node_purge(bat_priv); 378 batadv_gw_node_purge(bat_priv);
378 gw_election(bat_priv); 379 batadv_gw_election(bat_priv);
379} 380}
380 381
381static void purge_orig(struct work_struct *work) 382static void purge_orig(struct work_struct *work)