Re: [PATCH 6/7] iommu: Use right way to retrieve iommu_ops

From: Lu Baolu
Date: Mon Jan 24 2022 - 22:24:50 EST


On 1/24/22 5:48 PM, Tian, Kevin wrote:
From: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
Sent: Monday, January 24, 2022 3:11 PM
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index aa5486243892..111b3e9c79bb 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -385,6 +385,14 @@ static inline void iommu_iotlb_gather_init(struct
iommu_iotlb_gather *gather)
};
}

+static inline const struct iommu_ops *dev_iommu_ops_get(struct device
*dev)

dev_get_iommu_ops or just dev_iommu_ops?

dev_iommu_ops() looks better.

Best regards,
baolu