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.h | |
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.h')
-rw-r--r-- | net/batman-adv/hard-interface.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/batman-adv/hard-interface.h b/net/batman-adv/hard-interface.h index 6bc12c0eb2f0..d66dabd620b7 100644 --- a/net/batman-adv/hard-interface.h +++ b/net/batman-adv/hard-interface.h | |||
@@ -42,14 +42,15 @@ void batadv_update_min_mtu(struct net_device *soft_iface); | |||
42 | void batadv_hardif_free_rcu(struct rcu_head *rcu); | 42 | void batadv_hardif_free_rcu(struct rcu_head *rcu); |
43 | bool batadv_is_wifi_iface(int ifindex); | 43 | bool batadv_is_wifi_iface(int ifindex); |
44 | 44 | ||
45 | static inline void hardif_free_ref(struct hard_iface *hard_iface) | 45 | static inline void |
46 | batadv_hardif_free_ref(struct hard_iface *hard_iface) | ||
46 | { | 47 | { |
47 | if (atomic_dec_and_test(&hard_iface->refcount)) | 48 | if (atomic_dec_and_test(&hard_iface->refcount)) |
48 | call_rcu(&hard_iface->rcu, batadv_hardif_free_rcu); | 49 | call_rcu(&hard_iface->rcu, batadv_hardif_free_rcu); |
49 | } | 50 | } |
50 | 51 | ||
51 | static inline struct hard_iface *primary_if_get_selected( | 52 | static inline struct hard_iface * |
52 | struct bat_priv *bat_priv) | 53 | batadv_primary_if_get_selected(struct bat_priv *bat_priv) |
53 | { | 54 | { |
54 | struct hard_iface *hard_iface; | 55 | struct hard_iface *hard_iface; |
55 | 56 | ||