[PATCH] powerpc/dma: dma_set_coherent_mask() should not be GPL only

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE3936d

2 messages, 2 authors, 2015-10-28 · open the first message on its own page

[PATCH] powerpc/dma: dma_set_coherent_mask() should not be GPL only

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2015-10-27 06:02:52

When turning this from inline to an exported function I was a bit
over-eager and made it GPL only. This prevents the use of pretty much
all non-GPL PCI driver which is a bit over the top. Let's bring it
back in line with other architecture.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/kernel/dma.c
index 59503ed..18ea012 100644
--- a/arch/powerpc/kernel/dma.c
+++ b/arch/powerpc/kernel/dma.c
@@ -303,7 +303,7 @@ int dma_set_coherent_mask(struct device *dev, u64
mask)
 	dev->coherent_dma_mask = mask;
 	return 0;
 }
-EXPORT_SYMBOL_GPL(dma_set_coherent_mask);
+EXPORT_SYMBOL(dma_set_coherent_mask);
 
 #define PREALLOC_DMA_DEBUG_ENTRIES (1 << 16)
 

Re: powerpc/dma: dma_set_coherent_mask() should not be GPL only

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2015-10-28 08:34:52

On Tue, 2015-27-10 at 06:02:42 UTC, Benjamin Herrenschmidt wrote:
When turning this from inline to an exported function I was a bit
over-eager and made it GPL only. This prevents the use of pretty much
all non-GPL PCI driver which is a bit over the top. Let's bring it
back in line with other architecture.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/977bf062bba3eb8d03f66d5b

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help