diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:29 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:18 -0400 |
commit | 7cf06bc6ff810178a7fb9f12aaa6b274fc520f6f (patch) | |
tree | d2155e204af6153174f9a7f37596c21e04c65ddb /net/batman-adv/gateway_common.c | |
parent | 08adf1512298201a53b88bb0a3d67e0dbbe0ed9b (diff) |
batman-adv: Prefix gateway-client 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.c')
-rw-r--r-- | net/batman-adv/gateway_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/gateway_common.c b/net/batman-adv/gateway_common.c index 6e3b052b935d..a0b0f52d961a 100644 --- a/net/batman-adv/gateway_common.c +++ b/net/batman-adv/gateway_common.c | |||
@@ -165,7 +165,7 @@ ssize_t gw_bandwidth_set(struct net_device *net_dev, char *buff, size_t count) | |||
165 | if (atomic_read(&bat_priv->gw_bandwidth) == gw_bandwidth_tmp) | 165 | if (atomic_read(&bat_priv->gw_bandwidth) == gw_bandwidth_tmp) |
166 | return count; | 166 | return count; |
167 | 167 | ||
168 | gw_deselect(bat_priv); | 168 | batadv_gw_deselect(bat_priv); |
169 | bat_info(net_dev, | 169 | bat_info(net_dev, |
170 | "Changing gateway bandwidth from: '%i' to: '%ld' (propagating: %d%s/%d%s)\n", | 170 | "Changing gateway bandwidth from: '%i' to: '%ld' (propagating: %d%s/%d%s)\n", |
171 | atomic_read(&bat_priv->gw_bandwidth), gw_bandwidth_tmp, | 171 | atomic_read(&bat_priv->gw_bandwidth), gw_bandwidth_tmp, |