Skip to contentSkip to conversation

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

PATCH Applied Benjamin Herrenschmidt 2 participants 2 messages Oct 27, 2015 – Oct 28, 2015 PowerPC

lore
Share & tools
lore
#0 lore raw

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

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.

---

arch/powerpc/kernel/dma.c +0 -0
index 59503ed..18ea012 100644
@@ -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)

reviewer Applied
#1 lore raw
Quoted 6 lines · Benjamin Herrenschmidt

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.

Applied to powerpc fixes, thanks.

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

cheers