From 972e02b5256aa6d40427413b2d2f19ed626156c3 Mon Sep 17 00:00:00 2001 From: Todd Kjos Date: Wed, 4 Dec 2019 12:03:54 -0800 Subject: [PATCH] ANDROID: ASoC: Fix 'allmodconfig' build break Export 'arch_setup_dma_ops' to fix the dependency added if CONFIG_SND_SOC=m: ERROR: "arch_setup_dma_ops" [sound/soc/snd-soc-core.ko] undefined! This should be followed up with a refactor that removes the dependency (tracked in the cited bug). Bug: 144369166 Fixes: 9cb7ec3e9be4 ("ANDROID: ASoC: core - add hostless DAI support") Change-Id: Icf2daf1d92597e6dc9e723799ed7cea73e961227 Signed-off-by: Todd Kjos --- arch/arc/mm/dma.c | 1 + arch/arm/mm/dma-mapping-nommu.c | 1 + arch/arm/mm/dma-mapping.c | 1 + arch/arm64/mm/dma-mapping.c | 1 + arch/mips/mm/dma-noncoherent.c | 1 + 5 files changed, 5 insertions(+) diff --git a/arch/arc/mm/dma.c b/arch/arc/mm/dma.c index 73a7e88a1e92..4726906d6ac9 100644 --- a/arch/arc/mm/dma.c +++ b/arch/arc/mm/dma.c @@ -104,3 +104,4 @@ void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, dev_info(dev, "use %scoherent DMA ops\n", dev->dma_coherent ? "" : "non"); } +EXPORT_SYMBOL_GPL(arch_setup_dma_ops); diff --git a/arch/arm/mm/dma-mapping-nommu.c b/arch/arm/mm/dma-mapping-nommu.c index db9247898300..cbf1632db30a 100644 --- a/arch/arm/mm/dma-mapping-nommu.c +++ b/arch/arm/mm/dma-mapping-nommu.c @@ -209,3 +209,4 @@ void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, if (!dev->archdata.dma_coherent) set_dma_ops(dev, &arm_nommu_dma_ops); } +EXPORT_SYMBOL_GPL(arch_setup_dma_ops); diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 7d042d5c43e3..c9d6493d4e5a 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -2320,6 +2320,7 @@ void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, #endif dev->archdata.dma_ops_setup = true; } +EXPORT_SYMBOL_GPL(arch_setup_dma_ops); void arch_teardown_dma_ops(struct device *dev) { diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index 9239416e93d4..7c1fb467a5cc 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c @@ -57,3 +57,4 @@ void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, dev->dma_ops = &xen_swiotlb_dma_ops; #endif } +EXPORT_SYMBOL_GPL(arch_setup_dma_ops); diff --git a/arch/mips/mm/dma-noncoherent.c b/arch/mips/mm/dma-noncoherent.c index 1d4d57dd9acf..35cfcf9e3051 100644 --- a/arch/mips/mm/dma-noncoherent.c +++ b/arch/mips/mm/dma-noncoherent.c @@ -147,4 +147,5 @@ void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, { dev->dma_coherent = coherent; } +EXPORT_SYMBOL_GPL(arch_setup_dma_ops); #endif