diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:33 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:22 -0400 |
commit | 9039dc7e8a42864744665bf0905f48c2724f6e3e (patch) | |
tree | c59dbebe6df45722abb14d06f59be48fb09f2ed8 /net/batman-adv/bat_debugfs.c | |
parent | 1a8eaf0733ca754533a03d6cfa4463def2b81ce3 (diff) |
batman-adv: Prefix icmp-socket 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/bat_debugfs.c')
-rw-r--r-- | net/batman-adv/bat_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/bat_debugfs.c b/net/batman-adv/bat_debugfs.c index 7b294b431f88..9177a0619906 100644 --- a/net/batman-adv/bat_debugfs.c +++ b/net/batman-adv/bat_debugfs.c | |||
@@ -349,7 +349,7 @@ int batadv_debugfs_add_meshif(struct net_device *dev) | |||
349 | if (!bat_priv->debug_dir) | 349 | if (!bat_priv->debug_dir) |
350 | goto out; | 350 | goto out; |
351 | 351 | ||
352 | if (bat_socket_setup(bat_priv) < 0) | 352 | if (batadv_socket_setup(bat_priv) < 0) |
353 | goto rem_attr; | 353 | goto rem_attr; |
354 | 354 | ||
355 | if (debug_log_setup(bat_priv) < 0) | 355 | if (debug_log_setup(bat_priv) < 0) |