]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iommu/vt-d: Remove unused parameter of intel_pasid_setup_pass_through()
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 18 Dec 2023 07:34:43 +0000 (15:34 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 19 Dec 2023 13:32:27 +0000 (14:32 +0100)
The domain parameter of this helper is unused and can be deleted to avoid
dead code.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20231116015048.29675-3-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c
drivers/iommu/intel/pasid.c
drivers/iommu/intel/pasid.h

index 3b25b36bb9c737e07e5aefa154f33be4f7775788..cf4d13248bf28a53ed84987fe5daf5078ad1ed04 100644 (file)
@@ -2460,7 +2460,7 @@ static int dmar_domain_attach_device(struct dmar_domain *domain,
        if (sm_supported(iommu) && !dev_is_real_dma_subdevice(dev)) {
                /* Setup the PASID entry for requests without PASID: */
                if (hw_pass_through && domain_type_is_si(domain))
-                       ret = intel_pasid_setup_pass_through(iommu, domain,
+                       ret = intel_pasid_setup_pass_through(iommu,
                                        dev, IOMMU_NO_PASID);
                else if (domain->use_first_level)
                        ret = domain_setup_first_level(iommu, domain, dev,
@@ -4797,8 +4797,7 @@ static int intel_iommu_set_dev_pasid(struct iommu_domain *domain,
                goto out_free;
 
        if (domain_type_is_si(dmar_domain))
-               ret = intel_pasid_setup_pass_through(iommu, dmar_domain,
-                                                    dev, pasid);
+               ret = intel_pasid_setup_pass_through(iommu, dev, pasid);
        else if (dmar_domain->use_first_level)
                ret = domain_setup_first_level(iommu, dmar_domain,
                                               dev, pasid);
index 74e8e4c17e81430f216fa88a9575d591de203e3a..8a1bcabf71a93b62bbb803ca4d1194576b4bf56d 100644 (file)
@@ -767,7 +767,6 @@ int intel_pasid_setup_dirty_tracking(struct intel_iommu *iommu,
  * Set up the scalable mode pasid entry for passthrough translation type.
  */
 int intel_pasid_setup_pass_through(struct intel_iommu *iommu,
-                                  struct dmar_domain *domain,
                                   struct device *dev, u32 pasid)
 {
        u16 did = FLPT_DEFAULT_DID;
index dd37611175cc1b9e4009aad7d0c09522147128eb..16265bc1f7ec6a87c3c93f7a81b3c261d4ad8b0f 100644 (file)
@@ -111,7 +111,6 @@ int intel_pasid_setup_dirty_tracking(struct intel_iommu *iommu,
                                     struct device *dev, u32 pasid,
                                     bool enabled);
 int intel_pasid_setup_pass_through(struct intel_iommu *iommu,
-                                  struct dmar_domain *domain,
                                   struct device *dev, u32 pasid);
 int intel_pasid_setup_nested(struct intel_iommu *iommu, struct device *dev,
                             u32 pasid, struct dmar_domain *domain);