diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:36 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:25 -0400 |
commit | 30d3c5113f9a3f162d65d01b771b122afac0ce79 (patch) | |
tree | da443b3ff6ddcc0b9ffadd0b0626ac48cb1e8325 /net/batman-adv/originator.c | |
parent | 925a6672fae532ba178b8d35686705b417aada3d (diff) |
batman-adv: Prefix routing 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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c index 93585132049f..12c2e1ed2560 100644 --- a/net/batman-adv/originator.c +++ b/net/batman-adv/originator.c | |||
@@ -307,7 +307,7 @@ static bool purge_orig_neighbors(struct bat_priv *bat_priv, | |||
307 | neigh_purged = true; | 307 | neigh_purged = true; |
308 | 308 | ||
309 | hlist_del_rcu(&neigh_node->list); | 309 | hlist_del_rcu(&neigh_node->list); |
310 | bonding_candidate_del(orig_node, neigh_node); | 310 | batadv_bonding_candidate_del(orig_node, neigh_node); |
311 | batadv_neigh_node_free_ref(neigh_node); | 311 | batadv_neigh_node_free_ref(neigh_node); |
312 | } else { | 312 | } else { |
313 | if ((!*best_neigh_node) || | 313 | if ((!*best_neigh_node) || |
@@ -334,7 +334,8 @@ static bool purge_orig_node(struct bat_priv *bat_priv, | |||
334 | } else { | 334 | } else { |
335 | if (purge_orig_neighbors(bat_priv, orig_node, | 335 | if (purge_orig_neighbors(bat_priv, orig_node, |
336 | &best_neigh_node)) | 336 | &best_neigh_node)) |
337 | update_route(bat_priv, orig_node, best_neigh_node); | 337 | batadv_update_route(bat_priv, orig_node, |
338 | best_neigh_node); | ||
338 | } | 339 | } |
339 | 340 | ||
340 | return false; | 341 | return false; |