Re: [v9,2/7] PCI: Export pci_pio_to_address() for module use
From: Pali Rohár <pali@kernel.org>
Date: 2021-03-24 09:10:26
Also in:
linux-arm-kernel, linux-devicetree, linux-pci, lkml
From: Pali Rohár <pali@kernel.org>
Date: 2021-03-24 09:10:26
Also in:
linux-arm-kernel, linux-devicetree, linux-pci, lkml
On Wednesday 24 March 2021 11:05:05 Jianjun Wang wrote:
This interface will be used by PCI host drivers for PIO translation, export it to support compiling those drivers as kernel modules. Signed-off-by: Jianjun Wang <redacted> --- drivers/pci/pci.c | 1 + 1 file changed, 1 insertion(+)diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 16a17215f633..12bba221c9f2 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c@@ -4052,6 +4052,7 @@ phys_addr_t pci_pio_to_address(unsigned long pio) return address; } +EXPORT_SYMBOL(pci_pio_to_address);
Hello! I'm not sure if EXPORT_SYMBOL is correct because file has GPL-2.0 header. Should not be in this case used only EXPORT_SYMBOL_GPL? Maybe other people would know what is correct?
unsigned long __weak pci_address_to_pio(phys_addr_t address)
{
--
2.25.1_______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek