]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iommu/amd: Remove unused amd_iommu_domain_update()
authorAlejandro Jimenez <alejandro.j.jimenez@oracle.com>
Fri, 10 Jan 2025 16:34:59 +0000 (12:34 -0400)
committerJoerg Roedel <jroedel@suse.de>
Fri, 17 Jan 2025 07:59:28 +0000 (08:59 +0100)
All the callers have been removed by the below commit, remove the
implementation and prototypes.

Fixes: 322d889ae7d3 ("iommu/amd: Remove amd_iommu_domain_update() from page table freeing")
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/1-v2-9776c53c2966+1c7-amd_paging_flags_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu.h
drivers/iommu/amd/iommu.c

index c4cd272b31f4fdb850eb5df0e9fc72dcf1ed695c..cdbfa5f096dd813ae0cfe5486dbb7f070c58600a 100644 (file)
@@ -88,7 +88,6 @@ int amd_iommu_complete_ppr(struct device *dev, u32 pasid, int status, int tag);
  */
 void amd_iommu_flush_all_caches(struct amd_iommu *iommu);
 void amd_iommu_update_and_flush_device_table(struct protection_domain *domain);
-void amd_iommu_domain_update(struct protection_domain *domain);
 void amd_iommu_domain_flush_pages(struct protection_domain *domain,
                                  u64 address, size_t size);
 void amd_iommu_dev_flush_pasid_pages(struct iommu_dev_data *dev_data,
index 3aa80f140cdb42a8ada0a87fb5f5dd691a371483..e652990440c631c0e109bb5da67ea55d8196971c 100644 (file)
@@ -1766,15 +1766,6 @@ void amd_iommu_update_and_flush_device_table(struct protection_domain *domain)
        domain_flush_complete(domain);
 }
 
-void amd_iommu_domain_update(struct protection_domain *domain)
-{
-       /* Update device table */
-       amd_iommu_update_and_flush_device_table(domain);
-
-       /* Flush domain TLB(s) and wait for completion */
-       amd_iommu_domain_flush_all(domain);
-}
-
 int amd_iommu_complete_ppr(struct device *dev, u32 pasid, int status, int tag)
 {
        struct iommu_dev_data *dev_data;