diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-12 07:48:54 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-24 12:41:41 -0400 |
commit | e5d89254bf763da35b42a3c65289c9962f7240c2 (patch) | |
tree | 1e981f14fc7d386e4f848e7fbf822f9a773fc2ed /net/batman-adv/hard-interface.c | |
parent | 9b4a1159dff76f938aa64f7000621552e4d9ad18 (diff) |
batman-adv: Prefix hard-interface static inline functions with batadv_
All non-static symbols of batman-adv were prefixed with batadv_ to avoid
collisions with other symbols of the kernel. Other symbols of batman-adv
should use the same prefix to keep the naming scheme consistent.
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 | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c index 2a4d394771b8..06f8d63d741d 100644 --- a/net/batman-adv/hard-interface.c +++ b/net/batman-adv/hard-interface.c | |||
@@ -102,7 +102,7 @@ static void primary_if_update_addr(struct bat_priv *bat_priv, | |||
102 | struct vis_packet *vis_packet; | 102 | struct vis_packet *vis_packet; |
103 | struct hard_iface *primary_if; | 103 | struct hard_iface *primary_if; |
104 | 104 | ||
105 | primary_if = primary_if_get_selected(bat_priv); | 105 | primary_if = batadv_primary_if_get_selected(bat_priv); |
106 | if (!primary_if) | 106 | if (!primary_if) |
107 | goto out; | 107 | goto out; |
108 | 108 | ||
@@ -115,7 +115,7 @@ static void primary_if_update_addr(struct bat_priv *bat_priv, | |||
115 | batadv_bla_update_orig_address(bat_priv, primary_if, oldif); | 115 | batadv_bla_update_orig_address(bat_priv, primary_if, oldif); |
116 | out: | 116 | out: |
117 | if (primary_if) | 117 | if (primary_if) |
118 | hardif_free_ref(primary_if); | 118 | batadv_hardif_free_ref(primary_if); |
119 | } | 119 | } |
120 | 120 | ||
121 | static void primary_if_select(struct bat_priv *bat_priv, | 121 | static void primary_if_select(struct bat_priv *bat_priv, |
@@ -139,7 +139,7 @@ static void primary_if_select(struct bat_priv *bat_priv, | |||
139 | 139 | ||
140 | out: | 140 | out: |
141 | if (curr_hard_iface) | 141 | if (curr_hard_iface) |
142 | hardif_free_ref(curr_hard_iface); | 142 | batadv_hardif_free_ref(curr_hard_iface); |
143 | } | 143 | } |
144 | 144 | ||
145 | static bool hardif_is_iface_up(const struct hard_iface *hard_iface) | 145 | static bool hardif_is_iface_up(const struct hard_iface *hard_iface) |
@@ -229,7 +229,7 @@ static void hardif_activate_interface(struct hard_iface *hard_iface) | |||
229 | /* the first active interface becomes our primary interface or | 229 | /* the first active interface becomes our primary interface or |
230 | * the next active interface after the old primary interface was removed | 230 | * the next active interface after the old primary interface was removed |
231 | */ | 231 | */ |
232 | primary_if = primary_if_get_selected(bat_priv); | 232 | primary_if = batadv_primary_if_get_selected(bat_priv); |
233 | if (!primary_if) | 233 | if (!primary_if) |
234 | primary_if_select(bat_priv, hard_iface); | 234 | primary_if_select(bat_priv, hard_iface); |
235 | 235 | ||
@@ -240,7 +240,7 @@ static void hardif_activate_interface(struct hard_iface *hard_iface) | |||
240 | 240 | ||
241 | out: | 241 | out: |
242 | if (primary_if) | 242 | if (primary_if) |
243 | hardif_free_ref(primary_if); | 243 | batadv_hardif_free_ref(primary_if); |
244 | } | 244 | } |
245 | 245 | ||
246 | static void hardif_deactivate_interface(struct hard_iface *hard_iface) | 246 | static void hardif_deactivate_interface(struct hard_iface *hard_iface) |
@@ -347,7 +347,7 @@ out: | |||
347 | err_dev: | 347 | err_dev: |
348 | dev_put(soft_iface); | 348 | dev_put(soft_iface); |
349 | err: | 349 | err: |
350 | hardif_free_ref(hard_iface); | 350 | batadv_hardif_free_ref(hard_iface); |
351 | return ret; | 351 | return ret; |
352 | } | 352 | } |
353 | 353 | ||
@@ -369,7 +369,7 @@ void batadv_hardif_disable_interface(struct hard_iface *hard_iface) | |||
369 | bat_priv->num_ifaces--; | 369 | bat_priv->num_ifaces--; |
370 | batadv_orig_hash_del_if(hard_iface, bat_priv->num_ifaces); | 370 | batadv_orig_hash_del_if(hard_iface, bat_priv->num_ifaces); |
371 | 371 | ||
372 | primary_if = primary_if_get_selected(bat_priv); | 372 | primary_if = batadv_primary_if_get_selected(bat_priv); |
373 | if (hard_iface == primary_if) { | 373 | if (hard_iface == primary_if) { |
374 | struct hard_iface *new_if; | 374 | struct hard_iface *new_if; |
375 | 375 | ||
@@ -377,7 +377,7 @@ void batadv_hardif_disable_interface(struct hard_iface *hard_iface) | |||
377 | primary_if_select(bat_priv, new_if); | 377 | primary_if_select(bat_priv, new_if); |
378 | 378 | ||
379 | if (new_if) | 379 | if (new_if) |
380 | hardif_free_ref(new_if); | 380 | batadv_hardif_free_ref(new_if); |
381 | } | 381 | } |
382 | 382 | ||
383 | bat_priv->bat_algo_ops->bat_iface_disable(hard_iface); | 383 | bat_priv->bat_algo_ops->bat_iface_disable(hard_iface); |
@@ -393,11 +393,11 @@ void batadv_hardif_disable_interface(struct hard_iface *hard_iface) | |||
393 | batadv_softif_destroy(hard_iface->soft_iface); | 393 | batadv_softif_destroy(hard_iface->soft_iface); |
394 | 394 | ||
395 | hard_iface->soft_iface = NULL; | 395 | hard_iface->soft_iface = NULL; |
396 | hardif_free_ref(hard_iface); | 396 | batadv_hardif_free_ref(hard_iface); |
397 | 397 | ||
398 | out: | 398 | out: |
399 | if (primary_if) | 399 | if (primary_if) |
400 | hardif_free_ref(primary_if); | 400 | batadv_hardif_free_ref(primary_if); |
401 | } | 401 | } |
402 | 402 | ||
403 | static struct hard_iface *hardif_add_interface(struct net_device *net_dev) | 403 | static struct hard_iface *hardif_add_interface(struct net_device *net_dev) |
@@ -461,7 +461,7 @@ static void hardif_remove_interface(struct hard_iface *hard_iface) | |||
461 | 461 | ||
462 | hard_iface->if_status = IF_TO_BE_REMOVED; | 462 | hard_iface->if_status = IF_TO_BE_REMOVED; |
463 | batadv_sysfs_del_hardif(&hard_iface->hardif_obj); | 463 | batadv_sysfs_del_hardif(&hard_iface->hardif_obj); |
464 | hardif_free_ref(hard_iface); | 464 | batadv_hardif_free_ref(hard_iface); |
465 | } | 465 | } |
466 | 466 | ||
467 | void batadv_hardif_remove_interfaces(void) | 467 | void batadv_hardif_remove_interfaces(void) |
@@ -517,7 +517,7 @@ static int hard_if_event(struct notifier_block *this, | |||
517 | bat_priv = netdev_priv(hard_iface->soft_iface); | 517 | bat_priv = netdev_priv(hard_iface->soft_iface); |
518 | bat_priv->bat_algo_ops->bat_iface_update_mac(hard_iface); | 518 | bat_priv->bat_algo_ops->bat_iface_update_mac(hard_iface); |
519 | 519 | ||
520 | primary_if = primary_if_get_selected(bat_priv); | 520 | primary_if = batadv_primary_if_get_selected(bat_priv); |
521 | if (!primary_if) | 521 | if (!primary_if) |
522 | goto hardif_put; | 522 | goto hardif_put; |
523 | 523 | ||
@@ -529,10 +529,10 @@ static int hard_if_event(struct notifier_block *this, | |||
529 | } | 529 | } |
530 | 530 | ||
531 | hardif_put: | 531 | hardif_put: |
532 | hardif_free_ref(hard_iface); | 532 | batadv_hardif_free_ref(hard_iface); |
533 | out: | 533 | out: |
534 | if (primary_if) | 534 | if (primary_if) |
535 | hardif_free_ref(primary_if); | 535 | batadv_hardif_free_ref(primary_if); |
536 | return NOTIFY_DONE; | 536 | return NOTIFY_DONE; |
537 | } | 537 | } |
538 | 538 | ||