aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_iv_ogm.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-11 20:09:25 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-20 16:15:16 -0400
commit0f5f9322681887ca221707afafe4216b6db5d22f (patch)
tree93a654d6a5433adedeaee26cd204ad4b338304b1 /net/batman-adv/bat_iv_ogm.c
parent5853e22c58b318232fd6e15033ccb0852f865c0b (diff)
batman-adv: Prefix bitarray 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/bat_iv_ogm.c')
-rw-r--r--net/batman-adv/bat_iv_ogm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c
index b44573903264..53bce95e5f33 100644
--- a/net/batman-adv/bat_iv_ogm.c
+++ b/net/batman-adv/bat_iv_ogm.c
@@ -903,9 +903,9 @@ static int bat_iv_ogm_update_seqnos(const struct ethhdr *ethhdr,
903 set_mark = 0; 903 set_mark = 0;
904 904
905 /* if the window moved, set the update flag. */ 905 /* if the window moved, set the update flag. */
906 need_update |= bit_get_packet(bat_priv, 906 need_update |= batadv_bit_get_packet(bat_priv,
907 tmp_neigh_node->real_bits, 907 tmp_neigh_node->real_bits,
908 seq_diff, set_mark); 908 seq_diff, set_mark);
909 909
910 tmp_neigh_node->real_packet_count = 910 tmp_neigh_node->real_packet_count =
911 bitmap_weight(tmp_neigh_node->real_bits, 911 bitmap_weight(tmp_neigh_node->real_bits,