diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:36 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:25 -0400 |
commit | 30d3c5113f9a3f162d65d01b771b122afac0ce79 (patch) | |
tree | da443b3ff6ddcc0b9ffadd0b0626ac48cb1e8325 /net/batman-adv/gateway_client.c | |
parent | 925a6672fae532ba178b8d35686705b417aada3d (diff) |
batman-adv: Prefix routing 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_client.c')
-rw-r--r-- | net/batman-adv/gateway_client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/batman-adv/gateway_client.c b/net/batman-adv/gateway_client.c index e92055da5074..2bf330d16485 100644 --- a/net/batman-adv/gateway_client.c +++ b/net/batman-adv/gateway_client.c | |||
@@ -682,7 +682,8 @@ bool batadv_gw_out_of_range(struct bat_priv *bat_priv, | |||
682 | /* If the dhcp packet has been sent to a different gw, | 682 | /* If the dhcp packet has been sent to a different gw, |
683 | * we have to evaluate whether the old gw is still | 683 | * we have to evaluate whether the old gw is still |
684 | * reliable enough */ | 684 | * reliable enough */ |
685 | neigh_curr = find_router(bat_priv, curr_gw->orig_node, NULL); | 685 | neigh_curr = batadv_find_router(bat_priv, curr_gw->orig_node, |
686 | NULL); | ||
686 | if (!neigh_curr) | 687 | if (!neigh_curr) |
687 | goto out; | 688 | goto out; |
688 | 689 | ||
@@ -693,7 +694,7 @@ bool batadv_gw_out_of_range(struct bat_priv *bat_priv, | |||
693 | goto out; | 694 | goto out; |
694 | } | 695 | } |
695 | 696 | ||
696 | neigh_old = find_router(bat_priv, orig_dst_node, NULL); | 697 | neigh_old = batadv_find_router(bat_priv, orig_dst_node, NULL); |
697 | if (!neigh_old) | 698 | if (!neigh_old) |
698 | goto out; | 699 | goto out; |
699 | 700 | ||