iommu/amd: fix unused symbol iommu_table_lock
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")
Signed-off-by Danilo Krummrich <[email protected]>
--- drivers/iommu/amd_iommu.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/iommu/amd_iommu.c +3 -0
@@ -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
Quoted 5 lines · Danilo Krummrich
When
CONFIG_IRQ_REMAPis not setiommu_table_lockis unused and hece a warning is generated.Fixes ea6166f4b83e9 ("iommu/amd: Split irq_lookup_table out of the amd_iommu_devtable_lock")Signed-off-by Danilo Krummrich <[email protected]>
Sebastian