diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:39 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:29 -0400 |
commit | 08c36d3e8ad1f73d3b0322842363b23f6d203630 (patch) | |
tree | 9190100a886c18956fee193acbd8fd160060bc19 /net/batman-adv/originator.c | |
parent | 04b482a21aaf22cf5b327fb6a3fba6fdc8cb3de9 (diff) |
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>
Diffstat (limited to 'net/batman-adv/originator.c')
-rw-r--r-- | net/batman-adv/originator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c index 12c2e1ed2560..030666c12daf 100644 --- a/net/batman-adv/originator.c +++ b/net/batman-adv/originator.c | |||
@@ -139,8 +139,8 @@ static void orig_node_free_rcu(struct rcu_head *rcu) | |||
139 | spin_unlock_bh(&orig_node->neigh_list_lock); | 139 | spin_unlock_bh(&orig_node->neigh_list_lock); |
140 | 140 | ||
141 | frag_list_free(&orig_node->frag_list); | 141 | frag_list_free(&orig_node->frag_list); |
142 | tt_global_del_orig(orig_node->bat_priv, orig_node, | 142 | batadv_tt_global_del_orig(orig_node->bat_priv, orig_node, |
143 | "originator timed out"); | 143 | "originator timed out"); |
144 | 144 | ||
145 | kfree(orig_node->tt_buff); | 145 | kfree(orig_node->tt_buff); |
146 | kfree(orig_node->bcast_own); | 146 | kfree(orig_node->bcast_own); |