diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:32 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:21 -0400 |
commit | 1a8eaf0733ca754533a03d6cfa4463def2b81ce3 (patch) | |
tree | be806212d9109703e0d5d56708ff2efdf65c3d46 /net/batman-adv/hash.c | |
parent | 9563877ea52ea18bb4f1ed724c5e3a39bbbcf60b (diff) |
batman-adv: Prefix hash 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/hash.c')
-rw-r--r-- | net/batman-adv/hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/hash.c b/net/batman-adv/hash.c index 5b2eabe7c4e0..65bbd15dd37c 100644 --- a/net/batman-adv/hash.c +++ b/net/batman-adv/hash.c | |||
@@ -34,7 +34,7 @@ static void hash_init(struct hashtable_t *hash) | |||
34 | } | 34 | } |
35 | 35 | ||
36 | /* free only the hashtable and the hash itself. */ | 36 | /* free only the hashtable and the hash itself. */ |
37 | void hash_destroy(struct hashtable_t *hash) | 37 | void batadv_hash_destroy(struct hashtable_t *hash) |
38 | { | 38 | { |
39 | kfree(hash->list_locks); | 39 | kfree(hash->list_locks); |
40 | kfree(hash->table); | 40 | kfree(hash->table); |
@@ -42,7 +42,7 @@ void hash_destroy(struct hashtable_t *hash) | |||
42 | } | 42 | } |
43 | 43 | ||
44 | /* allocates and clears the hash */ | 44 | /* allocates and clears the hash */ |
45 | struct hashtable_t *hash_new(uint32_t size) | 45 | struct hashtable_t *batadv_hash_new(uint32_t size) |
46 | { | 46 | { |
47 | struct hashtable_t *hash; | 47 | struct hashtable_t *hash; |
48 | 48 | ||