* [PATCH] iommu/amd: fix unused symbol iommu_table_lock
@ 2018-05-06 9:53 Danilo Krummrich
[not found] ` <20180506095326.5031-1-danilokrummrich-q2z19idT6fYRctDU1SCqIg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Danilo Krummrich @ 2018-05-06 9:53 UTC (permalink / raw)
To: joro-zLv9SwRftAIdnm+yROfE0A, bigeasy-hfZtesqFncYOwBW4kG4KsQ,
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Cc: Danilo Krummrich
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 <danilokrummrich-q2z19idT6fYRctDU1SCqIg@public.gmane.org>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iommu/amd: fix unused symbol iommu_table_lock
[not found] ` <20180506095326.5031-1-danilokrummrich-q2z19idT6fYRctDU1SCqIg@public.gmane.org>
@ 2018-05-07 7:15 ` Sebastian Andrzej Siewior
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Andrzej Siewior @ 2018-05-07 7:15 UTC (permalink / raw)
To: Danilo Krummrich; +Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
On 2018-05-06 11:53:26 [+0200], Danilo Krummrich wrote:
> 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 <danilokrummrich-q2z19idT6fYRctDU1SCqIg@public.gmane.org>
https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git/commit/?h=iommu/fixes&id=94c793accacdb0d33c1df66f3b324eec96d26e58
Sebastian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-07 7:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-06 9:53 [PATCH] iommu/amd: fix unused symbol iommu_table_lock Danilo Krummrich
[not found] ` <20180506095326.5031-1-danilokrummrich-q2z19idT6fYRctDU1SCqIg@public.gmane.org>
2018-05-07 7:15 ` Sebastian Andrzej Siewior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.