]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iommu/amd: Make amd_iommu_dev_flush_pasid_all() static
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 28 Aug 2024 11:10:26 +0000 (11:10 +0000)
committerJoerg Roedel <jroedel@suse.de>
Wed, 4 Sep 2024 09:35:55 +0000 (11:35 +0200)
As its not used outside iommu.c. Also rename it as dev_flush_pasid_all().

No functional change intended.

Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Link: https://lore.kernel.org/r/20240828111029.5429-6-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu.h
drivers/iommu/amd/iommu.c

index a9e207ec2bbbd0743d2ec6168357e30b051d8e7c..d0a24ec3ada2a89559c4f64af7e87ec5f3bc0a28 100644 (file)
@@ -93,8 +93,6 @@ 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,
                                     ioasid_t pasid, u64 address, size_t size);
-void amd_iommu_dev_flush_pasid_all(struct iommu_dev_data *dev_data,
-                                  ioasid_t pasid);
 
 #ifdef CONFIG_IRQ_REMAP
 int amd_iommu_create_irq_domain(struct amd_iommu *iommu);
index 51b226b9e7274549830235077c9d8efd4bb681e0..ddd63c2b659428a4d9c8588c8f31d123337c6c89 100644 (file)
@@ -1551,8 +1551,8 @@ void amd_iommu_dev_flush_pasid_pages(struct iommu_dev_data *dev_data,
        iommu_completion_wait(iommu);
 }
 
-void amd_iommu_dev_flush_pasid_all(struct iommu_dev_data *dev_data,
-                                  ioasid_t pasid)
+static void dev_flush_pasid_all(struct iommu_dev_data *dev_data,
+                               ioasid_t pasid)
 {
        amd_iommu_dev_flush_pasid_pages(dev_data, 0,
                                        CMD_INV_IOMMU_ALL_PAGES_ADDRESS, pasid);
@@ -1818,7 +1818,7 @@ static int update_gcr3(struct iommu_dev_data *dev_data,
        else
                *pte = 0;
 
-       amd_iommu_dev_flush_pasid_all(dev_data, pasid);
+       dev_flush_pasid_all(dev_data, pasid);
        return 0;
 }