Skip to content

Commit 845bd6a

Browse files
hegdevasantjoergroedel
authored andcommitted
iommu/amd: Make amd_iommu_dev_flush_pasid_all() static
As its not used outside iommu.c. Also rename it as dev_flush_pasid_all(). No functional change intended. Signed-off-by: Vasant Hegde <[email protected]> Reviewed-by: Suravee Suthikulpanit <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 293aa9e commit 845bd6a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

drivers/iommu/amd/amd_iommu.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ void amd_iommu_domain_flush_pages(struct protection_domain *domain,
9393
u64 address, size_t size);
9494
void amd_iommu_dev_flush_pasid_pages(struct iommu_dev_data *dev_data,
9595
ioasid_t pasid, u64 address, size_t size);
96-
void amd_iommu_dev_flush_pasid_all(struct iommu_dev_data *dev_data,
97-
ioasid_t pasid);
9896

9997
#ifdef CONFIG_IRQ_REMAP
10098
int amd_iommu_create_irq_domain(struct amd_iommu *iommu);

drivers/iommu/amd/iommu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,8 +1551,8 @@ void amd_iommu_dev_flush_pasid_pages(struct iommu_dev_data *dev_data,
15511551
iommu_completion_wait(iommu);
15521552
}
15531553

1554-
void amd_iommu_dev_flush_pasid_all(struct iommu_dev_data *dev_data,
1555-
ioasid_t pasid)
1554+
static void dev_flush_pasid_all(struct iommu_dev_data *dev_data,
1555+
ioasid_t pasid)
15561556
{
15571557
amd_iommu_dev_flush_pasid_pages(dev_data, 0,
15581558
CMD_INV_IOMMU_ALL_PAGES_ADDRESS, pasid);
@@ -1818,7 +1818,7 @@ static int update_gcr3(struct iommu_dev_data *dev_data,
18181818
else
18191819
*pte = 0;
18201820

1821-
amd_iommu_dev_flush_pasid_all(dev_data, pasid);
1821+
dev_flush_pasid_all(dev_data, pasid);
18221822
return 0;
18231823
}
18241824

0 commit comments

Comments
 (0)