Arnd Bergmann 94c793acca iommu/amd: Hide unused iommu_table_lock
The newly introduced lock is only used when CONFIG_IRQ_REMAP is enabled:

drivers/iommu/amd_iommu.c:86:24: error: 'iommu_table_lock' defined but not used [-Werror=unused-variable]
 static DEFINE_SPINLOCK(iommu_table_lock);

This moves the definition next to the user, within the #ifdef protected
section of the file.

Fixes: ea6166f4b83e ("iommu/amd: Split irq_lookup_table out of the amd_iommu_devtable_lock")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2018-05-03 16:31:57 +02:00
..
2018-02-06 09:59:40 -08:00
2018-01-17 15:25:50 +01:00
2018-04-11 18:50:41 -07:00
2017-08-23 16:28:09 +02:00
2018-04-11 18:50:41 -07:00
2018-01-17 15:25:50 +01:00
2018-01-17 15:25:50 +01:00
2018-04-11 18:50:41 -07:00
2018-01-17 15:25:50 +01:00
2018-01-17 15:25:50 +01:00