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/bat_sysfs.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/bat_sysfs.c')
-rw-r--r-- | net/batman-adv/bat_sysfs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/batman-adv/bat_sysfs.c b/net/batman-adv/bat_sysfs.c index 8196fa6ff22e..0c7e22e4d5f3 100644 --- a/net/batman-adv/bat_sysfs.c +++ b/net/batman-adv/bat_sysfs.c | |||
@@ -132,7 +132,7 @@ ssize_t store_##_name(struct kobject *kobj, struct attribute *attr, \ | |||
132 | length = __store_uint_attr(buff, count, _min, _max, _post_func, \ | 132 | length = __store_uint_attr(buff, count, _min, _max, _post_func, \ |
133 | attr, &hard_iface->_name, net_dev); \ | 133 | attr, &hard_iface->_name, net_dev); \ |
134 | \ | 134 | \ |
135 | hardif_free_ref(hard_iface); \ | 135 | batadv_hardif_free_ref(hard_iface); \ |
136 | return length; \ | 136 | return length; \ |
137 | } | 137 | } |
138 | 138 | ||
@@ -150,7 +150,7 @@ ssize_t show_##_name(struct kobject *kobj, \ | |||
150 | \ | 150 | \ |
151 | length = sprintf(buff, "%i\n", atomic_read(&hard_iface->_name));\ | 151 | length = sprintf(buff, "%i\n", atomic_read(&hard_iface->_name));\ |
152 | \ | 152 | \ |
153 | hardif_free_ref(hard_iface); \ | 153 | batadv_hardif_free_ref(hard_iface); \ |
154 | return length; \ | 154 | return length; \ |
155 | } | 155 | } |
156 | 156 | ||
@@ -535,7 +535,7 @@ static ssize_t show_mesh_iface(struct kobject *kobj, struct attribute *attr, | |||
535 | length = sprintf(buff, "%s\n", hard_iface->if_status == IF_NOT_IN_USE ? | 535 | length = sprintf(buff, "%s\n", hard_iface->if_status == IF_NOT_IN_USE ? |
536 | "none" : hard_iface->soft_iface->name); | 536 | "none" : hard_iface->soft_iface->name); |
537 | 537 | ||
538 | hardif_free_ref(hard_iface); | 538 | batadv_hardif_free_ref(hard_iface); |
539 | 539 | ||
540 | return length; | 540 | return length; |
541 | } | 541 | } |
@@ -557,7 +557,7 @@ static ssize_t store_mesh_iface(struct kobject *kobj, struct attribute *attr, | |||
557 | if (strlen(buff) >= IFNAMSIZ) { | 557 | if (strlen(buff) >= IFNAMSIZ) { |
558 | pr_err("Invalid parameter for 'mesh_iface' setting received: interface name too long '%s'\n", | 558 | pr_err("Invalid parameter for 'mesh_iface' setting received: interface name too long '%s'\n", |
559 | buff); | 559 | buff); |
560 | hardif_free_ref(hard_iface); | 560 | batadv_hardif_free_ref(hard_iface); |
561 | return -EINVAL; | 561 | return -EINVAL; |
562 | } | 562 | } |
563 | 563 | ||
@@ -592,7 +592,7 @@ static ssize_t store_mesh_iface(struct kobject *kobj, struct attribute *attr, | |||
592 | unlock: | 592 | unlock: |
593 | rtnl_unlock(); | 593 | rtnl_unlock(); |
594 | out: | 594 | out: |
595 | hardif_free_ref(hard_iface); | 595 | batadv_hardif_free_ref(hard_iface); |
596 | return ret; | 596 | return ret; |
597 | } | 597 | } |
598 | 598 | ||
@@ -625,7 +625,7 @@ static ssize_t show_iface_status(struct kobject *kobj, struct attribute *attr, | |||
625 | break; | 625 | break; |
626 | } | 626 | } |
627 | 627 | ||
628 | hardif_free_ref(hard_iface); | 628 | batadv_hardif_free_ref(hard_iface); |
629 | 629 | ||
630 | return length; | 630 | return length; |
631 | } | 631 | } |
@@ -688,7 +688,7 @@ int batadv_throw_uevent(struct bat_priv *bat_priv, enum uev_type type, | |||
688 | struct kobject *bat_kobj; | 688 | struct kobject *bat_kobj; |
689 | char *uevent_env[4] = { NULL, NULL, NULL, NULL }; | 689 | char *uevent_env[4] = { NULL, NULL, NULL, NULL }; |
690 | 690 | ||
691 | primary_if = primary_if_get_selected(bat_priv); | 691 | primary_if = batadv_primary_if_get_selected(bat_priv); |
692 | if (!primary_if) | 692 | if (!primary_if) |
693 | goto out; | 693 | goto out; |
694 | 694 | ||
@@ -727,7 +727,7 @@ out: | |||
727 | kfree(uevent_env[2]); | 727 | kfree(uevent_env[2]); |
728 | 728 | ||
729 | if (primary_if) | 729 | if (primary_if) |
730 | hardif_free_ref(primary_if); | 730 | batadv_hardif_free_ref(primary_if); |
731 | 731 | ||
732 | if (ret) | 732 | if (ret) |
733 | bat_dbg(DBG_BATMAN, bat_priv, | 733 | bat_dbg(DBG_BATMAN, bat_priv, |