Skip to content

Commit 47642bd

Browse files
LuBaolujoergroedel
authored andcommitted
iommu/vt-d: Remove unused parameter of intel_pasid_setup_pass_through()
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>
1 parent 1903ef8 commit 47642bd

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

drivers/iommu/intel/iommu.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,7 +2460,7 @@ static int dmar_domain_attach_device(struct dmar_domain *domain,
24602460
if (sm_supported(iommu) && !dev_is_real_dma_subdevice(dev)) {
24612461
/* Setup the PASID entry for requests without PASID: */
24622462
if (hw_pass_through && domain_type_is_si(domain))
2463-
ret = intel_pasid_setup_pass_through(iommu, domain,
2463+
ret = intel_pasid_setup_pass_through(iommu,
24642464
dev, IOMMU_NO_PASID);
24652465
else if (domain->use_first_level)
24662466
ret = domain_setup_first_level(iommu, domain, dev,
@@ -4797,8 +4797,7 @@ static int intel_iommu_set_dev_pasid(struct iommu_domain *domain,
47974797
goto out_free;
47984798

47994799
if (domain_type_is_si(dmar_domain))
4800-
ret = intel_pasid_setup_pass_through(iommu, dmar_domain,
4801-
dev, pasid);
4800+
ret = intel_pasid_setup_pass_through(iommu, dev, pasid);
48024801
else if (dmar_domain->use_first_level)
48034802
ret = domain_setup_first_level(iommu, dmar_domain,
48044803
dev, pasid);

drivers/iommu/intel/pasid.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,6 @@ int intel_pasid_setup_dirty_tracking(struct intel_iommu *iommu,
767767
* Set up the scalable mode pasid entry for passthrough translation type.
768768
*/
769769
int intel_pasid_setup_pass_through(struct intel_iommu *iommu,
770-
struct dmar_domain *domain,
771770
struct device *dev, u32 pasid)
772771
{
773772
u16 did = FLPT_DEFAULT_DID;

drivers/iommu/intel/pasid.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ int intel_pasid_setup_dirty_tracking(struct intel_iommu *iommu,
111111
struct device *dev, u32 pasid,
112112
bool enabled);
113113
int intel_pasid_setup_pass_through(struct intel_iommu *iommu,
114-
struct dmar_domain *domain,
115114
struct device *dev, u32 pasid);
116115
int intel_pasid_setup_nested(struct intel_iommu *iommu, struct device *dev,
117116
u32 pasid, struct dmar_domain *domain);

0 commit comments

Comments
 (0)