diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-12 07:48:53 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-24 12:41:40 -0400 |
commit | 9b4a1159dff76f938aa64f7000621552e4d9ad18 (patch) | |
tree | f1e99a20dcb439299b83a6e2c09bb0aa3edb398c /net/batman-adv/bitarray.h | |
parent | 9e466250ede375482a9a65ca60765d24303099e9 (diff) |
batman-adv: Prefix bitarray static inline functions with batadv_
All non-static symbols of batman-adv were prefixed with batadv_ to avoid
collisions with other symbols of the kernel. Other symbols of batman-adv
should use the same prefix to keep the naming scheme consistent.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/bitarray.h')
-rw-r--r-- | net/batman-adv/bitarray.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/batman-adv/bitarray.h b/net/batman-adv/bitarray.h index 8ab542632343..7954ba81cece 100644 --- a/net/batman-adv/bitarray.h +++ b/net/batman-adv/bitarray.h | |||
@@ -23,8 +23,8 @@ | |||
23 | /* returns true if the corresponding bit in the given seq_bits indicates true | 23 | /* returns true if the corresponding bit in the given seq_bits indicates true |
24 | * and curr_seqno is within range of last_seqno | 24 | * and curr_seqno is within range of last_seqno |
25 | */ | 25 | */ |
26 | static inline int bat_test_bit(const unsigned long *seq_bits, | 26 | static inline int batadv_test_bit(const unsigned long *seq_bits, |
27 | uint32_t last_seqno, uint32_t curr_seqno) | 27 | uint32_t last_seqno, uint32_t curr_seqno) |
28 | { | 28 | { |
29 | int32_t diff; | 29 | int32_t diff; |
30 | 30 | ||
@@ -36,7 +36,7 @@ static inline int bat_test_bit(const unsigned long *seq_bits, | |||
36 | } | 36 | } |
37 | 37 | ||
38 | /* turn corresponding bit on, so we can remember that we got the packet */ | 38 | /* turn corresponding bit on, so we can remember that we got the packet */ |
39 | static inline void bat_set_bit(unsigned long *seq_bits, int32_t n) | 39 | static inline void batadv_set_bit(unsigned long *seq_bits, int32_t n) |
40 | { | 40 | { |
41 | /* if too old, just drop it */ | 41 | /* if too old, just drop it */ |
42 | if (n < 0 || n >= TQ_LOCAL_WINDOW_SIZE) | 42 | if (n < 0 || n >= TQ_LOCAL_WINDOW_SIZE) |