diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:34 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:23 -0400 |
commit | 7d211efc5087bc8870fa3374da88b4bf8159e79b (patch) | |
tree | 1cd6c7b6543610f7e684ac20988735c7c6d1c8fa /net/batman-adv/main.c | |
parent | 9039dc7e8a42864744665bf0905f48c2724f6e3e (diff) |
batman-adv: Prefix originator 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/main.c')
-rw-r--r-- | net/batman-adv/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c index 84dbda50aa90..eba5d2899b25 100644 --- a/net/batman-adv/main.c +++ b/net/batman-adv/main.c | |||
@@ -111,7 +111,7 @@ int mesh_init(struct net_device *soft_iface) | |||
111 | INIT_LIST_HEAD(&bat_priv->tt_req_list); | 111 | INIT_LIST_HEAD(&bat_priv->tt_req_list); |
112 | INIT_LIST_HEAD(&bat_priv->tt_roam_list); | 112 | INIT_LIST_HEAD(&bat_priv->tt_roam_list); |
113 | 113 | ||
114 | ret = originator_init(bat_priv); | 114 | ret = batadv_originator_init(bat_priv); |
115 | if (ret < 0) | 115 | if (ret < 0) |
116 | goto err; | 116 | goto err; |
117 | 117 | ||
@@ -150,7 +150,7 @@ void mesh_free(struct net_device *soft_iface) | |||
150 | vis_quit(bat_priv); | 150 | vis_quit(bat_priv); |
151 | 151 | ||
152 | batadv_gw_node_purge(bat_priv); | 152 | batadv_gw_node_purge(bat_priv); |
153 | originator_free(bat_priv); | 153 | batadv_originator_free(bat_priv); |
154 | 154 | ||
155 | tt_free(bat_priv); | 155 | tt_free(bat_priv); |
156 | 156 | ||