diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:37 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:26 -0400 |
commit | 9455e34cb2ded22e01abb6daa65ba1caeed8d7fe (patch) | |
tree | 56ac8dc90b5bcddcace5eea383b266e9654ecb2d /net/batman-adv/send.h | |
parent | 30d3c5113f9a3f162d65d01b771b122afac0ce79 (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.h | 17 |
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 | ||
25 | int send_skb_packet(struct sk_buff *skb, struct hard_iface *hard_iface, | 25 | int 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); |
27 | void schedule_bat_ogm(struct hard_iface *hard_iface); | 27 | void batadv_schedule_bat_ogm(struct hard_iface *hard_iface); |
28 | int add_bcast_packet_to_list(struct bat_priv *bat_priv, | 28 | int 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, |
30 | void send_outstanding_bat_ogm_packet(struct work_struct *work); | 30 | unsigned long delay); |
31 | void purge_outstanding_packets(struct bat_priv *bat_priv, | 31 | void batadv_send_outstanding_bat_ogm_packet(struct work_struct *work); |
32 | const struct hard_iface *hard_iface); | 32 | void 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_ */ |