Use container_of instead.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rcu_read_lock();
ht_node_init(node,
(void *)(unsigned long)(rand_r(&rand_lookup) % RAND_POOL),
- sizeof(void *),
- (void *) 0x42);
+ sizeof(void *));
ret = ht_add_unique(test_ht, node);
rcu_read_unlock();
if (ret) {
unsigned long hash;
unsigned long reverse_hash;
unsigned int dummy;
- void *value;
struct rcu_head head;
};
static inline
void ht_node_init(struct rcu_ht_node *node, void *key,
- size_t key_len, void *value)
+ size_t key_len)
{
node->key = key;
node->key_len = key_len;
- node->value = value;
node->dummy = 0;
}