* [PATCH] amd_iommu: initialize table->lock for lockdep
@ 2013-03-19 23:41 Kyle McMartin
0 siblings, 0 replies; only message in thread
From: Kyle McMartin @ 2013-03-19 23:41 UTC (permalink / raw)
To: Joerg Roedel; +Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Lockdep complains about uninitialized spinlocks, squelch that by calling
spin_lock_init to initialize the lockdep fields.
Signed-off-by: Kyle McMartin <kyle-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -3949,6 +3949,8 @@ static struct irq_remap_table *get_irq_table(u16 devid, bool ioapic)
if (!table)
goto out;
+ spin_lock_init(&table->lock);
+
if (ioapic)
/* Keep the first 32 indexes free for IOAPIC interrupts */
table->min_index = 32;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-03-19 23:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-19 23:41 [PATCH] amd_iommu: initialize table->lock for lockdep Kyle McMartin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).