Re: [PATCH RFC 01/17] iommu: Remove struct iommu_ops *iommu from arch_setup_dma_ops()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2023/11/4 0:44, Jason Gunthorpe wrote:
This is not being used to pass ops, it is just a way to tell if an
iommu driver was probed. These days this can be detected directly via
device_iommu_mapped(). Call device_iommu_mapped() in the two places that
need to check it and remove the iommu parameter everywhere.

Signed-off-by: Jason Gunthorpe<jgg@xxxxxxxxxx>
---
  arch/arc/mm/dma.c               |  2 +-
  arch/arm/mm/dma-mapping-nommu.c |  2 +-
  arch/arm/mm/dma-mapping.c       | 10 +++++-----
  arch/arm64/mm/dma-mapping.c     |  4 ++--
  arch/mips/mm/dma-noncoherent.c  |  2 +-
  arch/riscv/mm/dma-noncoherent.c |  2 +-
  drivers/acpi/scan.c             |  3 +--
  drivers/hv/hv_common.c          |  2 +-
  drivers/of/device.c             |  2 +-
  include/linux/dma-map-ops.h     |  4 ++--
  10 files changed, 16 insertions(+), 17 deletions(-)

Reviewed-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>

Best regards,
baolu




[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux