diff mbox series

[kernel] powerpc/powernv/npu: Export symbols as GPL

Message ID 20190619041312.81217-1-aik@ozlabs.ru (mailing list archive)
State Superseded
Headers show
Series [kernel] powerpc/powernv/npu: Export symbols as GPL | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch next (e610a466d16a086e321f0bd421e2fc75cff28605)
snowpatch_ozlabs/build-ppc64le success Build succeeded
snowpatch_ozlabs/build-ppc64be success Build succeeded
snowpatch_ozlabs/build-ppc64e success Build succeeded
snowpatch_ozlabs/build-pmac32 success Build succeeded
snowpatch_ozlabs/checkpatch success total: 0 errors, 0 warnings, 0 checks, 32 lines checked

Commit Message

Alexey Kardashevskiy June 19, 2019, 4:13 a.m. UTC
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(-)

Comments

Christoph Hellwig June 19, 2019, 7:29 a.m. UTC | #1
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.
diff mbox series

Patch

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)
 {