aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/send.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-11 20:09:37 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-20 16:15:26 -0400
commit9455e34cb2ded22e01abb6daa65ba1caeed8d7fe (patch)
tree56ac8dc90b5bcddcace5eea383b266e9654ecb2d /net/batman-adv/send.h
parent30d3c5113f9a3f162d65d01b771b122afac0ce79 (diff)
batman-adv: Prefix send 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/send.h')
-rw-r--r--net/batman-adv/send.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/net/batman-adv/send.h b/net/batman-adv/send.h
index 824ef06f9b01..452e8df5abb8 100644
--- a/net/batman-adv/send.h
+++ b/net/batman-adv/send.h
@@ -22,13 +22,14 @@
22#ifndef _NET_BATMAN_ADV_SEND_H_ 22#ifndef _NET_BATMAN_ADV_SEND_H_
23#define _NET_BATMAN_ADV_SEND_H_ 23#define _NET_BATMAN_ADV_SEND_H_
24 24
25int send_skb_packet(struct sk_buff *skb, struct hard_iface *hard_iface, 25int batadv_send_skb_packet(struct sk_buff *skb, struct hard_iface *hard_iface,
26 const uint8_t *dst_addr); 26 const uint8_t *dst_addr);
27void schedule_bat_ogm(struct hard_iface *hard_iface); 27void batadv_schedule_bat_ogm(struct hard_iface *hard_iface);
28int add_bcast_packet_to_list(struct bat_priv *bat_priv, 28int batadv_add_bcast_packet_to_list(struct bat_priv *bat_priv,
29 const struct sk_buff *skb, unsigned long delay); 29 const struct sk_buff *skb,
30void send_outstanding_bat_ogm_packet(struct work_struct *work); 30 unsigned long delay);
31void purge_outstanding_packets(struct bat_priv *bat_priv, 31void batadv_send_outstanding_bat_ogm_packet(struct work_struct *work);
32 const struct hard_iface *hard_iface); 32void batadv_purge_outstanding_packets(struct bat_priv *bat_priv,
33 const struct hard_iface *hard_iface);
33 34
34#endif /* _NET_BATMAN_ADV_SEND_H_ */ 35#endif /* _NET_BATMAN_ADV_SEND_H_ */