[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201019061453.32295-1-rdunlap@infradead.org>
Date: Sun, 18 Oct 2020 23:14:53 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: linux-kernel@...r.kernel.org
Cc: Randy Dunlap <rdunlap@...radead.org>,
kernel test robot <lkp@...el.com>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Paul Burton <paulburton@...nel.org>,
linux-mips@...r.kernel.org, Bjorn Helgaas <bhelgaas@...gle.com>,
linux-pci@...r.kernel.org
Subject: [PATCH] PCI: export pci_find_host_bridge() to fix MFD build error
Fix a build error in drivers/mfd/ioc.o by exporting
pci_find_host_bridge().
ERROR: modpost: "pci_find_host_bridge" [drivers/mfd/ioc3.ko] undefined!
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Cc: Paul Burton <paulburton@...nel.org>
Cc: linux-mips@...r.kernel.org
Cc: Bjorn Helgaas <bhelgaas@...gle.com>
Cc: linux-pci@...r.kernel.org
---
drivers/pci/host-bridge.c | 2 ++
1 file changed, 2 insertions(+)
--- linux-next-20201016.orig/drivers/pci/host-bridge.c
+++ linux-next-20201016/drivers/pci/host-bridge.c
@@ -4,6 +4,7 @@
*/
#include <linux/kernel.h>
+#include <linux/export.h>
#include <linux/pci.h>
#include <linux/module.h>
@@ -23,6 +24,7 @@ struct pci_host_bridge *pci_find_host_br
return to_pci_host_bridge(root_bus->bridge);
}
+EXPORT_SYMBOL(pci_find_host_bridge);
struct device *pci_get_host_bridge_device(struct pci_dev *dev)
{
Powered by blists - more mailing lists