aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/routing.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/routing.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/routing.c')
-rw-r--r--net/batman-adv/routing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c
index 9cfd23c6d64a..e573c32a619d 100644
--- a/net/batman-adv/routing.c
+++ b/net/batman-adv/routing.c
@@ -54,7 +54,7 @@ void slide_own_bcast_window(struct hard_iface *hard_iface)
54 word_index = hard_iface->if_num * NUM_WORDS; 54 word_index = hard_iface->if_num * NUM_WORDS;
55 word = &(orig_node->bcast_own[word_index]); 55 word = &(orig_node->bcast_own[word_index]);
56 56
57 bit_get_packet(bat_priv, word, 1, 0); 57 batadv_bit_get_packet(bat_priv, word, 1, 0);
58 orig_node->bcast_own_sum[hard_iface->if_num] = 58 orig_node->bcast_own_sum[hard_iface->if_num] =
59 bitmap_weight(word, TQ_LOCAL_WINDOW_SIZE); 59 bitmap_weight(word, TQ_LOCAL_WINDOW_SIZE);
60 spin_unlock_bh(&orig_node->ogm_cnt_lock); 60 spin_unlock_bh(&orig_node->ogm_cnt_lock);
@@ -1083,7 +1083,7 @@ int recv_bcast_packet(struct sk_buff *skb, struct hard_iface *recv_if)
1083 1083
1084 /* mark broadcast in flood history, update window position 1084 /* mark broadcast in flood history, update window position
1085 * if required. */ 1085 * if required. */
1086 if (bit_get_packet(bat_priv, orig_node->bcast_bits, seq_diff, 1)) 1086 if (batadv_bit_get_packet(bat_priv, orig_node->bcast_bits, seq_diff, 1))
1087 orig_node->last_bcast_seqno = ntohl(bcast_packet->seqno); 1087 orig_node->last_bcast_seqno = ntohl(bcast_packet->seqno);
1088 1088
1089 spin_unlock_bh(&orig_node->bcast_seqno_lock); 1089 spin_unlock_bh(&orig_node->bcast_seqno_lock);