From: Danilo Krummrich Subject: [PATCH] iommu/amd: fix unused symbol iommu_table_lock Date: Sun, 6 May 2018 11:53:26 +0200 Message-ID: <20180506095326.5031-1-danilokrummrich@dk-develop.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org, bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Cc: Danilo Krummrich List-Id: iommu@lists.linux-foundation.org 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 --- drivers/iommu/amd_iommu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 2a99f0f14795..94816a3a5bad 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -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); -- 2.17.0