aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/ring_buffer.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-11 20:09:35 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-20 16:15:24 -0400
commit925a6672fae532ba178b8d35686705b417aada3d (patch)
tree25e1d6b83170dd63c384290c11bc47b1d38d8557 /net/batman-adv/ring_buffer.h
parent7d211efc5087bc8870fa3374da88b4bf8159e79b (diff)
batman-adv: Prefix ring_buffer 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/ring_buffer.h')
-rw-r--r--net/batman-adv/ring_buffer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/batman-adv/ring_buffer.h b/net/batman-adv/ring_buffer.h
index 8b58bd82767d..fbaf9d29d1d7 100644
--- a/net/batman-adv/ring_buffer.h
+++ b/net/batman-adv/ring_buffer.h
@@ -22,7 +22,8 @@
22#ifndef _NET_BATMAN_ADV_RING_BUFFER_H_ 22#ifndef _NET_BATMAN_ADV_RING_BUFFER_H_
23#define _NET_BATMAN_ADV_RING_BUFFER_H_ 23#define _NET_BATMAN_ADV_RING_BUFFER_H_
24 24
25void ring_buffer_set(uint8_t lq_recv[], uint8_t *lq_index, uint8_t value); 25void batadv_ring_buffer_set(uint8_t lq_recv[], uint8_t *lq_index,
26uint8_t ring_buffer_avg(const uint8_t lq_recv[]); 26 uint8_t value);
27uint8_t batadv_ring_buffer_avg(const uint8_t lq_recv[]);
27 28
28#endif /* _NET_BATMAN_ADV_RING_BUFFER_H_ */ 29#endif /* _NET_BATMAN_ADV_RING_BUFFER_H_ */