Skip to content

Commit 45d08d8

Browse files
hegdevasantjoergroedel
authored andcommitted
iommu/amd: Remove unused EXPORT_SYMBOLS
Drop EXPORT_SYMBOLS for the functions that are not used by any modules. Signed-off-by: Vasant Hegde <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Jerry Snitselaar <[email protected]> Tested-by: Alex Deucher <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 37b282f commit 45d08d8

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

drivers/iommu/amd/init.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3666,7 +3666,6 @@ bool amd_iommu_v2_supported(void)
36663666
*/
36673667
return amd_iommu_gt_ppr_supported() && !amd_iommu_snp_en;
36683668
}
3669-
EXPORT_SYMBOL(amd_iommu_v2_supported);
36703669

36713670
struct amd_iommu *get_amd_iommu(unsigned int idx)
36723671
{

drivers/iommu/amd/iommu.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,6 @@ bool amd_iommu_is_attach_deferred(struct device *dev)
24462446

24472447
return dev_data->defer_attach;
24482448
}
2449-
EXPORT_SYMBOL_GPL(amd_iommu_is_attach_deferred);
24502449

24512450
static void amd_iommu_flush_iotlb_all(struct iommu_domain *domain)
24522451
{
@@ -2606,7 +2605,6 @@ int amd_iommu_flush_page(struct iommu_domain *dom, u32 pasid,
26062605

26072606
return ret;
26082607
}
2609-
EXPORT_SYMBOL(amd_iommu_flush_page);
26102608

26112609
static int __amd_iommu_flush_tlb(struct protection_domain *domain, u32 pasid)
26122610
{
@@ -2626,7 +2624,6 @@ int amd_iommu_flush_tlb(struct iommu_domain *dom, u32 pasid)
26262624

26272625
return ret;
26282626
}
2629-
EXPORT_SYMBOL(amd_iommu_flush_tlb);
26302627

26312628
static u64 *__get_gcr3_pte(u64 *root, int level, u32 pasid, bool alloc)
26322629
{
@@ -2706,7 +2703,6 @@ int amd_iommu_domain_set_gcr3(struct iommu_domain *dom, u32 pasid,
27062703

27072704
return ret;
27082705
}
2709-
EXPORT_SYMBOL(amd_iommu_domain_set_gcr3);
27102706

27112707
int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, u32 pasid)
27122708
{
@@ -2720,7 +2716,6 @@ int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, u32 pasid)
27202716

27212717
return ret;
27222718
}
2723-
EXPORT_SYMBOL(amd_iommu_domain_clear_gcr3);
27242719

27252720
int amd_iommu_complete_ppr(struct pci_dev *pdev, u32 pasid,
27262721
int status, int tag)
@@ -2739,7 +2734,6 @@ int amd_iommu_complete_ppr(struct pci_dev *pdev, u32 pasid,
27392734

27402735
return iommu_queue_command(iommu, &cmd);
27412736
}
2742-
EXPORT_SYMBOL(amd_iommu_complete_ppr);
27432737

27442738
#ifdef CONFIG_IRQ_REMAP
27452739

0 commit comments

Comments
 (0)