aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/hard-interface.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-06-05 16:31:31 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-07-01 16:47:21 -0400
commit56303d34a332be8e2f4daf7891ebc12cb7900529 (patch)
treebc972916771e698bd8a88fd66917950ce0bd48c1 /net/batman-adv/hard-interface.h
parent96412690116afcc1b2705615b5a7c8dc6c5e905f (diff)
batman-adv: Prefix types structs with batadv_
Reported-by: Martin Hundebøll <martin@hundeboll.net> 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.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/batman-adv/hard-interface.h b/net/batman-adv/hard-interface.h
index 4b60d580d290..3732366e7445 100644
--- a/net/batman-adv/hard-interface.h
+++ b/net/batman-adv/hard-interface.h
@@ -31,11 +31,11 @@ enum batadv_hard_if_state {
31 31
32extern struct notifier_block batadv_hard_if_notifier; 32extern struct notifier_block batadv_hard_if_notifier;
33 33
34struct hard_iface* 34struct batadv_hard_iface*
35batadv_hardif_get_by_netdev(const struct net_device *net_dev); 35batadv_hardif_get_by_netdev(const struct net_device *net_dev);
36int batadv_hardif_enable_interface(struct hard_iface *hard_iface, 36int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface,
37 const char *iface_name); 37 const char *iface_name);
38void batadv_hardif_disable_interface(struct hard_iface *hard_iface); 38void batadv_hardif_disable_interface(struct batadv_hard_iface *hard_iface);
39void batadv_hardif_remove_interfaces(void); 39void batadv_hardif_remove_interfaces(void);
40int batadv_hardif_min_mtu(struct net_device *soft_iface); 40int batadv_hardif_min_mtu(struct net_device *soft_iface);
41void batadv_update_min_mtu(struct net_device *soft_iface); 41void batadv_update_min_mtu(struct net_device *soft_iface);
@@ -43,16 +43,16 @@ void batadv_hardif_free_rcu(struct rcu_head *rcu);
43bool batadv_is_wifi_iface(int ifindex); 43bool batadv_is_wifi_iface(int ifindex);
44 44
45static inline void 45static inline void
46batadv_hardif_free_ref(struct hard_iface *hard_iface) 46batadv_hardif_free_ref(struct batadv_hard_iface *hard_iface)
47{ 47{
48 if (atomic_dec_and_test(&hard_iface->refcount)) 48 if (atomic_dec_and_test(&hard_iface->refcount))
49 call_rcu(&hard_iface->rcu, batadv_hardif_free_rcu); 49 call_rcu(&hard_iface->rcu, batadv_hardif_free_rcu);
50} 50}
51 51
52static inline struct hard_iface * 52static inline struct batadv_hard_iface *
53batadv_primary_if_get_selected(struct bat_priv *bat_priv) 53batadv_primary_if_get_selected(struct batadv_priv *bat_priv)
54{ 54{
55 struct hard_iface *hard_iface; 55 struct batadv_hard_iface *hard_iface;
56 56
57 rcu_read_lock(); 57 rcu_read_lock();
58 hard_iface = rcu_dereference(bat_priv->primary_if); 58 hard_iface = rcu_dereference(bat_priv->primary_if);