aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/hash.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-06-05 16:31:28 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-07-01 16:47:20 -0400
commit5bf74e9ca1e618afe5a513f64ee4923115e67004 (patch)
tree6534af43c249344deaf881006b27240fb77ee4c2 /net/batman-adv/hash.c
parent7f223c0c323a9ac2e88714669994007776e966a8 (diff)
batman-adv: Prefix hash struct and typedef with batadv_
Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/hash.c')
-rw-r--r--net/batman-adv/hash.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/batman-adv/hash.c b/net/batman-adv/hash.c
index 1fb961c8d9a0..0759c707e974 100644
--- a/net/batman-adv/hash.c
+++ b/net/batman-adv/hash.c
@@ -21,7 +21,7 @@
21#include "hash.h" 21#include "hash.h"
22 22
23/* clears the hash */ 23/* clears the hash */
24static void batadv_hash_init(struct hashtable_t *hash) 24static void batadv_hash_init(struct batadv_hashtable *hash)
25{ 25{
26 uint32_t i; 26 uint32_t i;
27 27
@@ -32,7 +32,7 @@ static void batadv_hash_init(struct hashtable_t *hash)
32} 32}
33 33
34/* free only the hashtable and the hash itself. */ 34/* free only the hashtable and the hash itself. */
35void batadv_hash_destroy(struct hashtable_t *hash) 35void batadv_hash_destroy(struct batadv_hashtable *hash)
36{ 36{
37 kfree(hash->list_locks); 37 kfree(hash->list_locks);
38 kfree(hash->table); 38 kfree(hash->table);
@@ -40,9 +40,9 @@ void batadv_hash_destroy(struct hashtable_t *hash)
40} 40}
41 41
42/* allocates and clears the hash */ 42/* allocates and clears the hash */
43struct hashtable_t *batadv_hash_new(uint32_t size) 43struct batadv_hashtable *batadv_hash_new(uint32_t size)
44{ 44{
45 struct hashtable_t *hash; 45 struct batadv_hashtable *hash;
46 46
47 hash = kmalloc(sizeof(*hash), GFP_ATOMIC); 47 hash = kmalloc(sizeof(*hash), GFP_ATOMIC);
48 if (!hash) 48 if (!hash)
@@ -68,7 +68,7 @@ free_hash:
68 return NULL; 68 return NULL;
69} 69}
70 70
71void batadv_hash_set_lock_class(struct hashtable_t *hash, 71void batadv_hash_set_lock_class(struct batadv_hashtable *hash,
72 struct lock_class_key *key) 72 struct lock_class_key *key)
73{ 73{
74 uint32_t i; 74 uint32_t i;