summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/iommu.c
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2021-07-12 13:12:20 +0200
committerJoerg Roedel <jroedel@suse.de>2021-07-26 13:27:38 +0200
commit308723e3580027f0cd7c86a5edfe6b5acb6863d2 (patch)
treecda2c92f4487fb84dcccd0a2ba2af381b5885939 /drivers/iommu/iommu.c
parentiommu/amd: Add support for IOMMU default DMA mode build options (diff)
downloadlinux-308723e3580027f0cd7c86a5edfe6b5acb6863d2.tar.xz
linux-308723e3580027f0cd7c86a5edfe6b5acb6863d2.zip
iommu: Remove mode argument from iommu_set_dma_strict()
We only ever now set strict mode enabled in iommu_set_dma_strict(), so just remove the argument. Signed-off-by: John Garry <john.garry@huawei.com> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/1626088340-5838-7-git-send-email-john.garry@huawei.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/iommu.c')
-rw-r--r--drivers/iommu/iommu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index bd9ccce387c5..eeea5e5c4d10 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -350,10 +350,9 @@ static int __init iommu_dma_setup(char *str)
}
early_param("iommu.strict", iommu_dma_setup);
-void iommu_set_dma_strict(bool strict)
+void iommu_set_dma_strict(void)
{
- if (strict || !(iommu_cmd_line & IOMMU_CMD_LINE_STRICT))
- iommu_dma_strict = strict;
+ iommu_dma_strict = true;
}
bool iommu_get_dma_strict(struct iommu_domain *domain)