linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH kernel] powerpc/powernv/npu: Export symbols as GPL
@ 2019-06-19  4:13 Alexey Kardashevskiy
  2019-06-19  7:29 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Kardashevskiy @ 2019-06-19  4:13 UTC (permalink / raw)
  To: linuxppc-dev
  Cc: Alexey Kardashevskiy, Alistair Popple, Piotr Jaroszynski,
	Reza Arbab, Christoph Hellwig

The out-of-tree NVIDIA driver has been re-licensed recently to MIT/GPL
so we can do the right thing and restrict the exported symbols to GPL
only.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---
 arch/powerpc/platforms/powernv/npu-dma.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/powerpc/platforms/powernv/npu-dma.c b/arch/powerpc/platforms/powernv/npu-dma.c
index dc23d9d2a7d9..459d9e728003 100644
--- a/arch/powerpc/platforms/powernv/npu-dma.c
+++ b/arch/powerpc/platforms/powernv/npu-dma.c
@@ -58,7 +58,7 @@ struct pci_dev *pnv_pci_get_gpu_dev(struct pci_dev *npdev)
 
 	return gpdev;
 }
-EXPORT_SYMBOL(pnv_pci_get_gpu_dev);
+EXPORT_SYMBOL_GPL(pnv_pci_get_gpu_dev);
 
 /* Given the real PCI device get a linked NPU device. */
 struct pci_dev *pnv_pci_get_npu_dev(struct pci_dev *gpdev, int index)
@@ -1052,7 +1052,7 @@ struct npu_context *pnv_npu2_init_context(struct pci_dev *gpdev,
 
 	return npu_context;
 }
-EXPORT_SYMBOL(pnv_npu2_init_context);
+EXPORT_SYMBOL_GPL(pnv_npu2_init_context);
 
 static void pnv_npu2_release_context(struct kref *kref)
 {
@@ -1107,7 +1107,7 @@ void pnv_npu2_destroy_context(struct npu_context *npu_context,
 	}
 
 }
-EXPORT_SYMBOL(pnv_npu2_destroy_context);
+EXPORT_SYMBOL_GPL(pnv_npu2_destroy_context);
 
 /*
  * Assumes mmap_sem is held for the contexts associated mm.
@@ -1149,7 +1149,7 @@ int pnv_npu2_handle_fault(struct npu_context *context, uintptr_t *ea,
 
 	return result;
 }
-EXPORT_SYMBOL(pnv_npu2_handle_fault);
+EXPORT_SYMBOL_GPL(pnv_npu2_handle_fault);
 
 int pnv_npu2_init(struct pci_controller *hose)
 {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH kernel] powerpc/powernv/npu: Export symbols as GPL
  2019-06-19  4:13 [PATCH kernel] powerpc/powernv/npu: Export symbols as GPL Alexey Kardashevskiy
@ 2019-06-19  7:29 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2019-06-19  7:29 UTC (permalink / raw)
  To: Alexey Kardashevskiy
  Cc: Alistair Popple, linuxppc-dev, Piotr Jaroszynski, Reza Arbab,
	Christoph Hellwig

On Wed, Jun 19, 2019 at 02:13:12PM +1000, Alexey Kardashevskiy wrote:
> The out-of-tree NVIDIA driver has been re-licensed recently to MIT/GPL
> so we can do the right thing and restrict the exported symbols to GPL
> only.

Which still does not matter until it actually is in mainline.  We don't
keep kernel infrastructure for purely out of tree drivers around.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-19  7:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-19  4:13 [PATCH kernel] powerpc/powernv/npu: Export symbols as GPL Alexey Kardashevskiy
2019-06-19  7:29 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).