diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:31 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:20 -0400 |
commit | 9563877ea52ea18bb4f1ed724c5e3a39bbbcf60b (patch) | |
tree | 56bd2312e4aa7d04b448edd1d8ed87309c941f80 /net/batman-adv/main.c | |
parent | 84d5e5e003752bc56b413f8d2c3fcfeeec066145 (diff) |
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/main.c')
-rw-r--r-- | net/batman-adv/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c index 8fe70b487b49..8e4083612523 100644 --- a/net/batman-adv/main.c +++ b/net/batman-adv/main.c | |||
@@ -68,7 +68,7 @@ static int __init batman_init(void) | |||
68 | bat_socket_init(); | 68 | bat_socket_init(); |
69 | batadv_debugfs_init(); | 69 | batadv_debugfs_init(); |
70 | 70 | ||
71 | register_netdevice_notifier(&hard_if_notifier); | 71 | register_netdevice_notifier(&batadv_hard_if_notifier); |
72 | 72 | ||
73 | pr_info("B.A.T.M.A.N. advanced %s (compatibility version %i) loaded\n", | 73 | pr_info("B.A.T.M.A.N. advanced %s (compatibility version %i) loaded\n", |
74 | SOURCE_VERSION, COMPAT_VERSION); | 74 | SOURCE_VERSION, COMPAT_VERSION); |
@@ -79,8 +79,8 @@ static int __init batman_init(void) | |||
79 | static void __exit batman_exit(void) | 79 | static void __exit batman_exit(void) |
80 | { | 80 | { |
81 | batadv_debugfs_destroy(); | 81 | batadv_debugfs_destroy(); |
82 | unregister_netdevice_notifier(&hard_if_notifier); | 82 | unregister_netdevice_notifier(&batadv_hard_if_notifier); |
83 | hardif_remove_interfaces(); | 83 | batadv_hardif_remove_interfaces(); |
84 | 84 | ||
85 | flush_workqueue(bat_event_workqueue); | 85 | flush_workqueue(bat_event_workqueue); |
86 | destroy_workqueue(bat_event_workqueue); | 86 | destroy_workqueue(bat_event_workqueue); |