summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/gateway_common.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-12 02:09:30 +0200
committerAntonio Quartulli <ordex@autistici.org>2012-06-20 22:15:19 +0200
commit84d5e5e003752bc56b413f8d2c3fcfeeec066145 (patch)
treefcba8ac1059d844f5a8e98caaa0ed50cd499d91f /net/batman-adv/gateway_common.h
parent7cf06bc6ff810178a7fb9f12aaa6b274fc520f6f (diff)
downloadlinux-84d5e5e003752bc56b413f8d2c3fcfeeec066145.tar.gz
linux-84d5e5e003752bc56b413f8d2c3fcfeeec066145.tar.bz2
linux-84d5e5e003752bc56b413f8d2c3fcfeeec066145.zip
batman-adv: Prefix gateway-common 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/gateway_common.h')
-rw-r--r--net/batman-adv/gateway_common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/batman-adv/gateway_common.h b/net/batman-adv/gateway_common.h
index b8fb11c4f927..e256040760bf 100644
--- a/net/batman-adv/gateway_common.h
+++ b/net/batman-adv/gateway_common.h
@@ -32,7 +32,8 @@ enum gw_modes {
#define GW_MODE_CLIENT_NAME "client"
#define GW_MODE_SERVER_NAME "server"
-void gw_bandwidth_to_kbit(uint8_t gw_class, int *down, int *up);
-ssize_t gw_bandwidth_set(struct net_device *net_dev, char *buff, size_t count);
+void batadv_gw_bandwidth_to_kbit(uint8_t gw_class, int *down, int *up);
+ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff,
+ size_t count);
#endif /* _NET_BATMAN_ADV_GATEWAY_COMMON_H_ */