/* Request exclusive access to a hash bucket for a given  */
static struct hash_bucket* get_hash_bucket(struct dma_debug_entry *entry, unsigned long *flags)
/* Request exclusive access to a hash bucket for a given  */
static struct hash_bucket* get_hash_bucket(struct dma_debug_entry *entry, unsigned long *flags)
{
	int idx = hash_fn(entry);
	unsigned long __flags;
	spin_lock_irqsave(&dma_entry_hash[idx].lock, __flags);
	*flags = __flags;
	return &dma_entry_hash[idx];
}