[PATCH 1/4] UBUNTU: SAUCE: azure: ACPI: scan: Export acpi_get_dma_attr()

Tim Gardner tim.gardner at canonical.com
Wed Mar 23 16:16:28 UTC 2022


From: Michael Kelley <mikelley at microsoft.com>

BugLink: https://bugs.launchpad.net/bugs/1966098

Export acpi_get_dma_attr() so that it can be used by the Hyper-V
VMbus driver, which may be built as a module. The related function
acpi_dma_configure_id() is already exported.

Signed-off-by: Michael Kelley <mikelley at microsoft.com>
Signed-off-by: Tim Gardner <tim.gardner at canonical.com>
---
 drivers/acpi/scan.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 438df8da6d12..93bb8f298c98 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -1440,6 +1440,7 @@ enum dev_dma_attr acpi_get_dma_attr(struct acpi_device *adev)
 	else
 		return DEV_DMA_NON_COHERENT;
 }
+EXPORT_SYMBOL_GPL(acpi_get_dma_attr);
 
 /**
  * acpi_dma_get_range() - Get device DMA parameters.
-- 
2.35.1




More information about the kernel-team mailing list