diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-06-05 16:31:31 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-07-01 16:47:21 -0400 |
commit | 56303d34a332be8e2f4daf7891ebc12cb7900529 (patch) | |
tree | bc972916771e698bd8a88fd66917950ce0bd48c1 /net/batman-adv/hard-interface.h | |
parent | 96412690116afcc1b2705615b5a7c8dc6c5e905f (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.h | 14 |
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 | ||
32 | extern struct notifier_block batadv_hard_if_notifier; | 32 | extern struct notifier_block batadv_hard_if_notifier; |
33 | 33 | ||
34 | struct hard_iface* | 34 | struct batadv_hard_iface* |
35 | batadv_hardif_get_by_netdev(const struct net_device *net_dev); | 35 | batadv_hardif_get_by_netdev(const struct net_device *net_dev); |
36 | int batadv_hardif_enable_interface(struct hard_iface *hard_iface, | 36 | int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface, |
37 | const char *iface_name); | 37 | const char *iface_name); |
38 | void batadv_hardif_disable_interface(struct hard_iface *hard_iface); | 38 | void batadv_hardif_disable_interface(struct batadv_hard_iface *hard_iface); |
39 | void batadv_hardif_remove_interfaces(void); | 39 | void batadv_hardif_remove_interfaces(void); |
40 | int batadv_hardif_min_mtu(struct net_device *soft_iface); | 40 | int batadv_hardif_min_mtu(struct net_device *soft_iface); |
41 | void batadv_update_min_mtu(struct net_device *soft_iface); | 41 | void batadv_update_min_mtu(struct net_device *soft_iface); |
@@ -43,16 +43,16 @@ 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 | 45 | static inline void |
46 | batadv_hardif_free_ref(struct hard_iface *hard_iface) | 46 | batadv_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 | ||
52 | static inline struct hard_iface * | 52 | static inline struct batadv_hard_iface * |
53 | batadv_primary_if_get_selected(struct bat_priv *bat_priv) | 53 | batadv_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); |