summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/soft-interface.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-12 02:09:31 +0200
committerAntonio Quartulli <ordex@autistici.org>2012-06-20 22:15:20 +0200
commit9563877ea52ea18bb4f1ed724c5e3a39bbbcf60b (patch)
tree56bd2312e4aa7d04b448edd1d8ed87309c941f80 /net/batman-adv/soft-interface.c
parent84d5e5e003752bc56b413f8d2c3fcfeeec066145 (diff)
downloadop-kernel-dev-9563877ea52ea18bb4f1ed724c5e3a39bbbcf60b.zip
op-kernel-dev-9563877ea52ea18bb4f1ed724c5e3a39bbbcf60b.tar.gz
batman-adv: Prefix hard-interface 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/soft-interface.c')
-rw-r--r--net/batman-adv/soft-interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c
index bfc4fe0..5bf9a73 100644
--- a/net/batman-adv/soft-interface.c
+++ b/net/batman-adv/soft-interface.c
@@ -122,7 +122,7 @@ static int interface_set_mac_addr(struct net_device *dev, void *p)
static int interface_change_mtu(struct net_device *dev, int new_mtu)
{
/* check ranges */
- if ((new_mtu < 68) || (new_mtu > hardif_min_mtu(dev)))
+ if ((new_mtu < 68) || (new_mtu > batadv_hardif_min_mtu(dev)))
return -EINVAL;
dev->mtu = new_mtu;
OpenPOWER on IntegriCloud