From: Alexey Kardashevskiy <aik@ozlabs.ru>
To: linuxppc-dev@lists.ozlabs.org
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>,
Alistair Popple <alistair@popple.id.au>,
Piotr Jaroszynski <pjaroszynski@nvidia.com>,
Reza Arbab <arbab@linux.ibm.com>, Christoph Hellwig <hch@lst.de>
Subject: [PATCH kernel] powerpc/powernv/npu: Export symbols as GPL
Date: Wed, 19 Jun 2019 14:13:12 +1000 [thread overview]
Message-ID: <20190619041312.81217-1-aik@ozlabs.ru> (raw)
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
next reply other threads:[~2019-06-19 4:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-19 4:13 Alexey Kardashevskiy [this message]
2019-06-19 7:29 ` [PATCH kernel] powerpc/powernv/npu: Export symbols as GPL Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190619041312.81217-1-aik@ozlabs.ru \
--to=aik@ozlabs.ru \
--cc=alistair@popple.id.au \
--cc=arbab@linux.ibm.com \
--cc=hch@lst.de \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=pjaroszynski@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).