> - 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). _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
