From 5d606fda6daf05fbf9747f8dac9cda302aa14180 Mon Sep 17 00:00:00 2001 From: Mostafa Saleh Date: Thu, 5 Jan 2023 15:55:25 +0000 Subject: [PATCH] ANDROID: arm64: kvm: iommu: Export IOMMU register and init functions. As S2MPU driver was moved to an EL2 module, we need to export init and register functions to be used from the module. [ qperret: dropped changes to nonexistent Pixel symbol list ] Bug: 261857213 Change-Id: I819dff0e6164051c464533d80eb68ea003b34b21 Signed-off-by: Mostafa Saleh Signed-off-by: Quentin Perret --- arch/arm64/kvm/iommu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kvm/iommu.c b/arch/arm64/kvm/iommu.c index 6ea342c034d4..08b318a2aae9 100644 --- a/arch/arm64/kvm/iommu.c +++ b/arch/arm64/kvm/iommu.c @@ -16,6 +16,7 @@ int pkvm_iommu_driver_init(u64 drv, void *data, size_t size) { return kvm_call_hyp_nvhe(__pkvm_iommu_driver_init, drv, data, size); } +EXPORT_SYMBOL_GPL(pkvm_iommu_driver_init); int pkvm_iommu_register(struct device *dev, u64 drv, phys_addr_t pa, size_t size, struct device *parent) @@ -41,6 +42,7 @@ int pkvm_iommu_register(struct device *dev, u64 drv, phys_addr_t pa, } return ret; } +EXPORT_SYMBOL_GPL(pkvm_iommu_register); int pkvm_iommu_suspend(struct device *dev) {