batman-adv: Prefix translation-table 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>
This commit is contained in:

committed by
Antonio Quartulli

parent
04b482a21a
commit
08c36d3e8a
@@ -397,8 +397,8 @@ static struct backbone_gw *bla_get_backbone_gw(struct bat_priv *bat_priv,
|
||||
/* this is a gateway now, remove any tt entries */
|
||||
orig_node = orig_hash_find(bat_priv, orig);
|
||||
if (orig_node) {
|
||||
tt_global_del_orig(bat_priv, orig_node,
|
||||
"became a backbone gateway");
|
||||
batadv_tt_global_del_orig(bat_priv, orig_node,
|
||||
"became a backbone gateway");
|
||||
batadv_orig_node_free_ref(orig_node);
|
||||
}
|
||||
return entry;
|
||||
|
Reference in New Issue
Block a user