diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:42 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:32 -0400 |
commit | 3193e8fdfa355289892661d206d1954114a7be95 (patch) | |
tree | 4fce7c85cd572389433a128db0ed180a3928e968 /net/batman-adv/main.h | |
parent | d0f714f472967577067853acc8dabe0abc75ae8f (diff) |
batman-adv: Prefix main 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/main.h')
-rw-r--r-- | net/batman-adv/main.h | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index ea9d433ad46d..12386421a55b 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h | |||
@@ -145,26 +145,27 @@ enum dbg_level { | |||
145 | #include <linux/seq_file.h> | 145 | #include <linux/seq_file.h> |
146 | #include "types.h" | 146 | #include "types.h" |
147 | 147 | ||
148 | extern char bat_routing_algo[]; | 148 | extern char batadv_routing_algo[]; |
149 | extern struct list_head hardif_list; | 149 | extern struct list_head batadv_hardif_list; |
150 | 150 | ||
151 | extern unsigned char broadcast_addr[]; | 151 | extern unsigned char batadv_broadcast_addr[]; |
152 | extern struct workqueue_struct *bat_event_workqueue; | 152 | extern struct workqueue_struct *batadv_event_workqueue; |
153 | 153 | ||
154 | int mesh_init(struct net_device *soft_iface); | 154 | int batadv_mesh_init(struct net_device *soft_iface); |
155 | void mesh_free(struct net_device *soft_iface); | 155 | void batadv_mesh_free(struct net_device *soft_iface); |
156 | void inc_module_count(void); | 156 | void batadv_inc_module_count(void); |
157 | void dec_module_count(void); | 157 | void batadv_dec_module_count(void); |
158 | int is_my_mac(const uint8_t *addr); | 158 | int batadv_is_my_mac(const uint8_t *addr); |
159 | int batman_skb_recv(struct sk_buff *skb, struct net_device *dev, | 159 | int batadv_batman_skb_recv(struct sk_buff *skb, struct net_device *dev, |
160 | struct packet_type *ptype, struct net_device *orig_dev); | 160 | struct packet_type *ptype, |
161 | int recv_handler_register(uint8_t packet_type, | 161 | struct net_device *orig_dev); |
162 | int (*recv_handler)(struct sk_buff *, | 162 | int batadv_recv_handler_register(uint8_t packet_type, |
163 | struct hard_iface *)); | 163 | int (*recv_handler)(struct sk_buff *, |
164 | void recv_handler_unregister(uint8_t packet_type); | 164 | struct hard_iface *)); |
165 | int bat_algo_register(struct bat_algo_ops *bat_algo_ops); | 165 | void batadv_recv_handler_unregister(uint8_t packet_type); |
166 | int bat_algo_select(struct bat_priv *bat_priv, char *name); | 166 | int batadv_algo_register(struct bat_algo_ops *bat_algo_ops); |
167 | int bat_algo_seq_print_text(struct seq_file *seq, void *offset); | 167 | int batadv_algo_select(struct bat_priv *bat_priv, char *name); |
168 | int batadv_algo_seq_print_text(struct seq_file *seq, void *offset); | ||
168 | 169 | ||
169 | #ifdef CONFIG_BATMAN_ADV_DEBUG | 170 | #ifdef CONFIG_BATMAN_ADV_DEBUG |
170 | int batadv_debug_log(struct bat_priv *bat_priv, const char *fmt, ...) | 171 | int batadv_debug_log(struct bat_priv *bat_priv, const char *fmt, ...) |