Skip to contentSkip to conversation

iommu/amd: fix unused symbol iommu_table_lock

PATCH In review Danilo Krummrich 2 participants 2 messages May 6, 2018 – May 7, 2018 1 message not in the archive IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu/amd: fix unused symbol iommu_table_lock

When CONFIG_IRQ_REMAP is not set iommu_table_lock is unused and hece a warning is generated.

Fixes ea6166f4b83e9 ("iommu/amd: Split irq_lookup_table out of the amd_iommu_devtable_lock")
---
 drivers/iommu/amd_iommu.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/iommu/amd_iommu.c +3 -0
index 2a99f0f14795..94816a3a5bad 100644
@@ -83,7 +83,10 @@
 
 static DEFINE_SPINLOCK(amd_iommu_devtable_lock);
 static DEFINE_SPINLOCK(pd_bitmap_lock);
+
+#ifdef CONFIG_IRQ_REMAP
 static DEFINE_SPINLOCK(iommu_table_lock);
+#endif
 
 /* List of all available dev_data structures */
 static LLIST_HEAD(dev_data_list);
Signature · 1 line
2.17.0

A message that is not in the archive (sent off-list or not yet received): 20180506095326.5031-1-danilokrummrich-q2z19idT6fYRctDU1SCqIg@public.gmane.org