diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-06-05 22:31:28 +0200 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-07-01 22:47:20 +0200 |
commit | 5bf74e9ca1e618afe5a513f64ee4923115e67004 (patch) | |
tree | 6534af43c249344deaf881006b27240fb77ee4c2 /net/batman-adv/hash.c | |
parent | 7f223c0c323a9ac2e88714669994007776e966a8 (diff) | |
download | op-kernel-dev-5bf74e9ca1e618afe5a513f64ee4923115e67004.zip op-kernel-dev-5bf74e9ca1e618afe5a513f64ee4923115e67004.tar.gz |
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.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/batman-adv/hash.c b/net/batman-adv/hash.c index 1fb961c..0759c70 100644 --- a/net/batman-adv/hash.c +++ b/net/batman-adv/hash.c @@ -21,7 +21,7 @@ #include "hash.h" /* clears the hash */ -static void batadv_hash_init(struct hashtable_t *hash) +static void batadv_hash_init(struct batadv_hashtable *hash) { uint32_t i; @@ -32,7 +32,7 @@ static void batadv_hash_init(struct hashtable_t *hash) } /* free only the hashtable and the hash itself. */ -void batadv_hash_destroy(struct hashtable_t *hash) +void batadv_hash_destroy(struct batadv_hashtable *hash) { kfree(hash->list_locks); kfree(hash->table); @@ -40,9 +40,9 @@ void batadv_hash_destroy(struct hashtable_t *hash) } /* allocates and clears the hash */ -struct hashtable_t *batadv_hash_new(uint32_t size) +struct batadv_hashtable *batadv_hash_new(uint32_t size) { - struct hashtable_t *hash; + struct batadv_hashtable *hash; hash = kmalloc(sizeof(*hash), GFP_ATOMIC); if (!hash) @@ -68,7 +68,7 @@ free_hash: return NULL; } -void batadv_hash_set_lock_class(struct hashtable_t *hash, +void batadv_hash_set_lock_class(struct batadv_hashtable *hash, struct lock_class_key *key) { uint32_t i; |