aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/soft-interface.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-11 20:09:42 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-20 16:15:32 -0400
commit3193e8fdfa355289892661d206d1954114a7be95 (patch)
tree4fce7c85cd572389433a128db0ed180a3928e968 /net/batman-adv/soft-interface.c
parentd0f714f472967577067853acc8dabe0abc75ae8f (diff)
batman-adv: Prefix main 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/soft-interface.c')
-rw-r--r--net/batman-adv/soft-interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c
index 9fd1925775c7..994b2b8d7e10 100644
--- a/net/batman-adv/soft-interface.c
+++ b/net/batman-adv/soft-interface.c
@@ -411,7 +411,7 @@ struct net_device *batadv_softif_create(const char *name)
411 if (!bat_priv->bat_counters) 411 if (!bat_priv->bat_counters)
412 goto unreg_soft_iface; 412 goto unreg_soft_iface;
413 413
414 ret = bat_algo_select(bat_priv, bat_routing_algo); 414 ret = batadv_algo_select(bat_priv, batadv_routing_algo);
415 if (ret < 0) 415 if (ret < 0)
416 goto free_bat_counters; 416 goto free_bat_counters;
417 417
@@ -423,7 +423,7 @@ struct net_device *batadv_softif_create(const char *name)
423 if (ret < 0) 423 if (ret < 0)
424 goto unreg_sysfs; 424 goto unreg_sysfs;
425 425
426 ret = mesh_init(soft_iface); 426 ret = batadv_mesh_init(soft_iface);
427 if (ret < 0) 427 if (ret < 0)
428 goto unreg_debugfs; 428 goto unreg_debugfs;
429 429
@@ -449,7 +449,7 @@ void batadv_softif_destroy(struct net_device *soft_iface)
449{ 449{
450 batadv_debugfs_del_meshif(soft_iface); 450 batadv_debugfs_del_meshif(soft_iface);
451 batadv_sysfs_del_meshif(soft_iface); 451 batadv_sysfs_del_meshif(soft_iface);
452 mesh_free(soft_iface); 452 batadv_mesh_free(soft_iface);
453 unregister_netdevice(soft_iface); 453 unregister_netdevice(soft_iface);
454} 454}
455 455