IB/core: Fix mgid key handling in SA agent multicast data-base
[cascardo/linux.git] / lib / rhashtable.c
index c7e987a..6c3c723 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
 #include <linux/mm.h>
-#include <linux/hash.h>
+#include <linux/jhash.h>
 #include <linux/random.h>
 #include <linux/rhashtable.h>
 
@@ -524,7 +524,7 @@ static size_t rounded_hashtable_size(struct rhashtable_params *params)
  *     .head_offset = offsetof(struct test_obj, node),
  *     .key_offset = offsetof(struct test_obj, key),
  *     .key_len = sizeof(int),
- *     .hashfn = arch_fast_hash,
+ *     .hashfn = jhash,
  * #ifdef CONFIG_PROVE_LOCKING
  *     .mutex_is_held = &my_mutex_is_held,
  * #endif
@@ -545,7 +545,7 @@ static size_t rounded_hashtable_size(struct rhashtable_params *params)
  *
  * struct rhashtable_params params = {
  *     .head_offset = offsetof(struct test_obj, node),
- *     .hashfn = arch_fast_hash,
+ *     .hashfn = jhash,
  *     .obj_hashfn = my_hash_fn,
  * #ifdef CONFIG_PROVE_LOCKING
  *     .mutex_is_held = &my_mutex_is_held,
@@ -778,7 +778,7 @@ static int __init test_rht_init(void)
                .head_offset = offsetof(struct test_obj, node),
                .key_offset = offsetof(struct test_obj, value),
                .key_len = sizeof(int),
-               .hashfn = arch_fast_hash,
+               .hashfn = jhash,
 #ifdef CONFIG_PROVE_LOCKING
                .mutex_is_held = &test_mutex_is_held,
 #endif