aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/main.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-11 20:09:42 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-20 16:15:32 -0400
commit3193e8fdfa355289892661d206d1954114a7be95 (patch)
tree4fce7c85cd572389433a128db0ed180a3928e968 /net/batman-adv/main.h
parentd0f714f472967577067853acc8dabe0abc75ae8f (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.h41
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
148extern char bat_routing_algo[]; 148extern char batadv_routing_algo[];
149extern struct list_head hardif_list; 149extern struct list_head batadv_hardif_list;
150 150
151extern unsigned char broadcast_addr[]; 151extern unsigned char batadv_broadcast_addr[];
152extern struct workqueue_struct *bat_event_workqueue; 152extern struct workqueue_struct *batadv_event_workqueue;
153 153
154int mesh_init(struct net_device *soft_iface); 154int batadv_mesh_init(struct net_device *soft_iface);
155void mesh_free(struct net_device *soft_iface); 155void batadv_mesh_free(struct net_device *soft_iface);
156void inc_module_count(void); 156void batadv_inc_module_count(void);
157void dec_module_count(void); 157void batadv_dec_module_count(void);
158int is_my_mac(const uint8_t *addr); 158int batadv_is_my_mac(const uint8_t *addr);
159int batman_skb_recv(struct sk_buff *skb, struct net_device *dev, 159int 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,
161int recv_handler_register(uint8_t packet_type, 161 struct net_device *orig_dev);
162 int (*recv_handler)(struct sk_buff *, 162int batadv_recv_handler_register(uint8_t packet_type,
163 struct hard_iface *)); 163 int (*recv_handler)(struct sk_buff *,
164void recv_handler_unregister(uint8_t packet_type); 164 struct hard_iface *));
165int bat_algo_register(struct bat_algo_ops *bat_algo_ops); 165void batadv_recv_handler_unregister(uint8_t packet_type);
166int bat_algo_select(struct bat_priv *bat_priv, char *name); 166int batadv_algo_register(struct bat_algo_ops *bat_algo_ops);
167int bat_algo_seq_print_text(struct seq_file *seq, void *offset); 167int batadv_algo_select(struct bat_priv *bat_priv, char *name);
168int 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
170int batadv_debug_log(struct bat_priv *bat_priv, const char *fmt, ...) 171int batadv_debug_log(struct bat_priv *bat_priv, const char *fmt, ...)