Re: [PATCH v5 5/7] dma-iommu: Check CONFIG_SWIOTLB more broadly

From: Christoph Hellwig
Date: Mon Aug 16 2021 - 08:08:44 EST


> - if (IS_ENABLED(CONFIG_SWIOTLB) && dev_is_untrusted(dev) &&
> + if (IS_ENABLED(CONFIG_SWIOTLB) && dev_use_swiotlb(dev) &&
> iova_offset(iovad, phys | size)) {

This can drop the explicit CONFIG_SWIOTLB check now (and make the remaining
conditional fit onto a single line).