From 095b18ab612410b408bc25c6c667af33034a6aff Mon Sep 17 00:00:00 2001 From: CY Tseng Date: Sun, 10 May 2020 03:02:10 +0800 Subject: [PATCH] ANDROID: GKI: add missing exports for cam_smmu_api.ko The following symbols are exported: - iommu_dma_enable_best_fit_algo - iommu_dma_reserve_iova Signed-off-by: CY Tseng Bug: 156262756 Test: compile Change-Id: I6127d076b49a8a81f0c67724d531ed0507eea8a5 (cherry picked from commit 9dcd3e2c5c99c9cb5ce225192ca8cdafb91bfbe8) Signed-off-by: Will McVicker --- drivers/iommu/dma-iommu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c index baca24ce38b0..a3659e67346d 100644 --- a/drivers/iommu/dma-iommu.c +++ b/drivers/iommu/dma-iommu.c @@ -340,6 +340,7 @@ int iommu_dma_reserve_iova(struct device *dev, dma_addr_t base, return 0; } +EXPORT_SYMBOL_GPL(iommu_dma_reserve_iova); /* * Should be called prior to using dma-apis. @@ -357,6 +358,7 @@ int iommu_dma_enable_best_fit_algo(struct device *dev) iovad->best_fit = true; return 0; } +EXPORT_SYMBOL_GPL(iommu_dma_enable_best_fit_algo); /** * dma_info_to_prot - Translate DMA API directions and attributes to IOMMU API