diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:29 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:18 -0400 |
commit | 7cf06bc6ff810178a7fb9f12aaa6b274fc520f6f (patch) | |
tree | d2155e204af6153174f9a7f37596c21e04c65ddb /net/batman-adv/gateway_client.h | |
parent | 08adf1512298201a53b88bb0a3d67e0dbbe0ed9b (diff) |
batman-adv: Prefix gateway-client non-static functions with batadv_
batman-adv can be compiled as part of the kernel instead of an module. In that
case the linker will see all non-static symbols of batman-adv and all other
non-static symbols of the kernel. This could lead to symbol collisions. A
prefix for the batman-adv symbols that defines their private namespace avoids
such a problem.
Reported-by: David Miller <davem@davemloft.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/gateway_client.h')
-rw-r--r-- | net/batman-adv/gateway_client.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/net/batman-adv/gateway_client.h b/net/batman-adv/gateway_client.h index bf56a5aea10b..2c2446f3f124 100644 --- a/net/batman-adv/gateway_client.h +++ b/net/batman-adv/gateway_client.h | |||
@@ -22,17 +22,19 @@ | |||
22 | #ifndef _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ | 22 | #ifndef _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ |
23 | #define _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ | 23 | #define _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ |
24 | 24 | ||
25 | void gw_deselect(struct bat_priv *bat_priv); | 25 | void batadv_gw_deselect(struct bat_priv *bat_priv); |
26 | void gw_election(struct bat_priv *bat_priv); | 26 | void batadv_gw_election(struct bat_priv *bat_priv); |
27 | struct orig_node *gw_get_selected_orig(struct bat_priv *bat_priv); | 27 | struct orig_node *batadv_gw_get_selected_orig(struct bat_priv *bat_priv); |
28 | void gw_check_election(struct bat_priv *bat_priv, struct orig_node *orig_node); | 28 | void batadv_gw_check_election(struct bat_priv *bat_priv, |
29 | void gw_node_update(struct bat_priv *bat_priv, | 29 | struct orig_node *orig_node); |
30 | struct orig_node *orig_node, uint8_t new_gwflags); | 30 | void batadv_gw_node_update(struct bat_priv *bat_priv, |
31 | void gw_node_delete(struct bat_priv *bat_priv, struct orig_node *orig_node); | 31 | struct orig_node *orig_node, uint8_t new_gwflags); |
32 | void gw_node_purge(struct bat_priv *bat_priv); | 32 | void batadv_gw_node_delete(struct bat_priv *bat_priv, |
33 | int gw_client_seq_print_text(struct seq_file *seq, void *offset); | 33 | struct orig_node *orig_node); |
34 | bool gw_is_dhcp_target(struct sk_buff *skb, unsigned int *header_len); | 34 | void batadv_gw_node_purge(struct bat_priv *bat_priv); |
35 | bool gw_out_of_range(struct bat_priv *bat_priv, | 35 | int batadv_gw_client_seq_print_text(struct seq_file *seq, void *offset); |
36 | struct sk_buff *skb, struct ethhdr *ethhdr); | 36 | bool batadv_gw_is_dhcp_target(struct sk_buff *skb, unsigned int *header_len); |
37 | bool batadv_gw_out_of_range(struct bat_priv *bat_priv, | ||
38 | struct sk_buff *skb, struct ethhdr *ethhdr); | ||
37 | 39 | ||
38 | #endif /* _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ */ | 40 | #endif /* _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ */ |