diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:41 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:31 -0400 |
commit | d0f714f472967577067853acc8dabe0abc75ae8f (patch) | |
tree | 6e1fe2f2b26eb8808f92e0c96482fcc0030de8ce /net/batman-adv/vis.h | |
parent | 88ed1e7772bbedfd0bb013c209f61619eca0a781 (diff) |
batman-adv: Prefix vis 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/vis.h')
-rw-r--r-- | net/batman-adv/vis.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/net/batman-adv/vis.h b/net/batman-adv/vis.h index ee2e46e5347..932514e4b7d 100644 --- a/net/batman-adv/vis.h +++ b/net/batman-adv/vis.h | |||
@@ -25,14 +25,14 @@ | |||
25 | #define VIS_TIMEOUT 200000 /* timeout of vis packets | 25 | #define VIS_TIMEOUT 200000 /* timeout of vis packets |
26 | * in miliseconds */ | 26 | * in miliseconds */ |
27 | 27 | ||
28 | int vis_seq_print_text(struct seq_file *seq, void *offset); | 28 | int batadv_vis_seq_print_text(struct seq_file *seq, void *offset); |
29 | void receive_server_sync_packet(struct bat_priv *bat_priv, | 29 | void batadv_receive_server_sync_packet(struct bat_priv *bat_priv, |
30 | struct vis_packet *vis_packet, | 30 | struct vis_packet *vis_packet, |
31 | int vis_info_len); | 31 | int vis_info_len); |
32 | void receive_client_update_packet(struct bat_priv *bat_priv, | 32 | void batadv_receive_client_update_packet(struct bat_priv *bat_priv, |
33 | struct vis_packet *vis_packet, | 33 | struct vis_packet *vis_packet, |
34 | int vis_info_len); | 34 | int vis_info_len); |
35 | int vis_init(struct bat_priv *bat_priv); | 35 | int batadv_vis_init(struct bat_priv *bat_priv); |
36 | void vis_quit(struct bat_priv *bat_priv); | 36 | void batadv_vis_quit(struct bat_priv *bat_priv); |
37 | 37 | ||
38 | #endif /* _NET_BATMAN_ADV_VIS_H_ */ | 38 | #endif /* _NET_BATMAN_ADV_VIS_H_ */ |