diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:33 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:22 -0400 |
commit | 9039dc7e8a42864744665bf0905f48c2724f6e3e (patch) | |
tree | c59dbebe6df45722abb14d06f59be48fb09f2ed8 /net/batman-adv/icmp_socket.h | |
parent | 1a8eaf0733ca754533a03d6cfa4463def2b81ce3 (diff) |
batman-adv: Prefix icmp-socket 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/icmp_socket.h')
-rw-r--r-- | net/batman-adv/icmp_socket.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/batman-adv/icmp_socket.h b/net/batman-adv/icmp_socket.h index 380ed4c2443a..7b8863668490 100644 --- a/net/batman-adv/icmp_socket.h +++ b/net/batman-adv/icmp_socket.h | |||
@@ -24,9 +24,9 @@ | |||
24 | 24 | ||
25 | #define ICMP_SOCKET "socket" | 25 | #define ICMP_SOCKET "socket" |
26 | 26 | ||
27 | void bat_socket_init(void); | 27 | void batadv_socket_init(void); |
28 | int bat_socket_setup(struct bat_priv *bat_priv); | 28 | int batadv_socket_setup(struct bat_priv *bat_priv); |
29 | void bat_socket_receive_packet(struct icmp_packet_rr *icmp_packet, | 29 | void batadv_socket_receive_packet(struct icmp_packet_rr *icmp_packet, |
30 | size_t icmp_len); | 30 | size_t icmp_len); |
31 | 31 | ||
32 | #endif /* _NET_BATMAN_ADV_ICMP_SOCKET_H_ */ | 32 | #endif /* _NET_BATMAN_ADV_ICMP_SOCKET_H_ */ |