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/hard-interface.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/hard-interface.c')
-rw-r--r-- | net/batman-adv/hard-interface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c index 4f44f049186f..1f126cbd2c79 100644 --- a/net/batman-adv/hard-interface.c +++ b/net/batman-adv/hard-interface.c | |||
@@ -312,7 +312,7 @@ int batadv_hardif_enable_interface(struct hard_iface *hard_iface, | |||
312 | hard_iface->if_num = bat_priv->num_ifaces; | 312 | hard_iface->if_num = bat_priv->num_ifaces; |
313 | bat_priv->num_ifaces++; | 313 | bat_priv->num_ifaces++; |
314 | hard_iface->if_status = IF_INACTIVE; | 314 | hard_iface->if_status = IF_INACTIVE; |
315 | orig_hash_add_if(hard_iface, bat_priv->num_ifaces); | 315 | batadv_orig_hash_add_if(hard_iface, bat_priv->num_ifaces); |
316 | 316 | ||
317 | hard_iface->batman_adv_ptype.type = __constant_htons(ETH_P_BATMAN); | 317 | hard_iface->batman_adv_ptype.type = __constant_htons(ETH_P_BATMAN); |
318 | hard_iface->batman_adv_ptype.func = batman_skb_recv; | 318 | hard_iface->batman_adv_ptype.func = batman_skb_recv; |
@@ -373,7 +373,7 @@ void batadv_hardif_disable_interface(struct hard_iface *hard_iface) | |||
373 | dev_remove_pack(&hard_iface->batman_adv_ptype); | 373 | dev_remove_pack(&hard_iface->batman_adv_ptype); |
374 | 374 | ||
375 | bat_priv->num_ifaces--; | 375 | bat_priv->num_ifaces--; |
376 | orig_hash_del_if(hard_iface, bat_priv->num_ifaces); | 376 | batadv_orig_hash_del_if(hard_iface, bat_priv->num_ifaces); |
377 | 377 | ||
378 | primary_if = primary_if_get_selected(bat_priv); | 378 | primary_if = primary_if_get_selected(bat_priv); |
379 | if (hard_iface == primary_if) { | 379 | if (hard_iface == primary_if) { |
@@ -390,7 +390,7 @@ void batadv_hardif_disable_interface(struct hard_iface *hard_iface) | |||
390 | hard_iface->if_status = IF_NOT_IN_USE; | 390 | hard_iface->if_status = IF_NOT_IN_USE; |
391 | 391 | ||
392 | /* delete all references to this hard_iface */ | 392 | /* delete all references to this hard_iface */ |
393 | purge_orig_ref(bat_priv); | 393 | batadv_purge_orig_ref(bat_priv); |
394 | purge_outstanding_packets(bat_priv, hard_iface); | 394 | purge_outstanding_packets(bat_priv, hard_iface); |
395 | dev_put(hard_iface->soft_iface); | 395 | dev_put(hard_iface->soft_iface); |
396 | 396 | ||