aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/routing.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-11 20:09:33 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-20 16:15:22 -0400
commit9039dc7e8a42864744665bf0905f48c2724f6e3e (patch)
treec59dbebe6df45722abb14d06f59be48fb09f2ed8 /net/batman-adv/routing.c
parent1a8eaf0733ca754533a03d6cfa4463def2b81ce3 (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/routing.c')
-rw-r--r--net/batman-adv/routing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c
index 5b5feb496d8d..7525e4fd2faf 100644
--- a/net/batman-adv/routing.c
+++ b/net/batman-adv/routing.c
@@ -289,7 +289,7 @@ static int recv_my_icmp_packet(struct bat_priv *bat_priv,
289 289
290 /* add data to device queue */ 290 /* add data to device queue */
291 if (icmp_packet->msg_type != ECHO_REQUEST) { 291 if (icmp_packet->msg_type != ECHO_REQUEST) {
292 bat_socket_receive_packet(icmp_packet, icmp_len); 292 batadv_socket_receive_packet(icmp_packet, icmp_len);
293 goto out; 293 goto out;
294 } 294 }
295 295