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

Alexey Kardashevskiy aik at ozlabs.ru
Wed Jun 19 14:13:12 AEST 2019


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 at 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



More information about the Linuxppc-dev mailing list