Skip to content

Commit 1a684b0

Browse files
aljimenezbjoergroedel
authored andcommitted
iommu/amd: Remove unused amd_iommu_domain_update()
All the callers have been removed by the below commit, remove the implementation and prototypes. Fixes: 322d889 ("iommu/amd: Remove amd_iommu_domain_update() from page table freeing") Reviewed-by: Vasant Hegde <[email protected]> Signed-off-by: Alejandro Jimenez <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 5bb494d commit 1a684b0

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

drivers/iommu/amd/amd_iommu.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ int amd_iommu_complete_ppr(struct device *dev, u32 pasid, int status, int tag);
8888
*/
8989
void amd_iommu_flush_all_caches(struct amd_iommu *iommu);
9090
void amd_iommu_update_and_flush_device_table(struct protection_domain *domain);
91-
void amd_iommu_domain_update(struct protection_domain *domain);
9291
void amd_iommu_domain_flush_pages(struct protection_domain *domain,
9392
u64 address, size_t size);
9493
void amd_iommu_dev_flush_pasid_pages(struct iommu_dev_data *dev_data,

drivers/iommu/amd/iommu.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,15 +1766,6 @@ void amd_iommu_update_and_flush_device_table(struct protection_domain *domain)
17661766
domain_flush_complete(domain);
17671767
}
17681768

1769-
void amd_iommu_domain_update(struct protection_domain *domain)
1770-
{
1771-
/* Update device table */
1772-
amd_iommu_update_and_flush_device_table(domain);
1773-
1774-
/* Flush domain TLB(s) and wait for completion */
1775-
amd_iommu_domain_flush_all(domain);
1776-
}
1777-
17781769
int amd_iommu_complete_ppr(struct device *dev, u32 pasid, int status, int tag)
17791770
{
17801771
struct iommu_dev_data *dev_data;

0 commit comments

Comments
 (0)