All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] bcma: Prevent build of PCI host features in module
@ 2018-03-01  9:58 ` Matt Redfearn
  0 siblings, 0 replies; 11+ messages in thread
From: Matt Redfearn @ 2018-03-01  9:58 UTC (permalink / raw)
  To: kvalo; +Cc: zajec5, linux-wireless, linux-mips, jhogan, Matt Redfearn

Attempting to build bcma.ko with BCMA_DRIVER_PCI_HOSTMODE=y results in
a build error due to use of symbols not exported from vmlinux:

ERROR: "pcibios_enable_device" [drivers/bcma/bcma.ko] undefined!
ERROR: "register_pci_controller" [drivers/bcma/bcma.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1

To prevent this, don't allow the host mode feature to be built if
CONFIG_BCMA=m

Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>

---

Changes in v2:
Rebase on v4.16-rc1

 drivers/bcma/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bcma/Kconfig b/drivers/bcma/Kconfig
index ba8acca036df..cb0f1aad20b7 100644
--- a/drivers/bcma/Kconfig
+++ b/drivers/bcma/Kconfig
@@ -55,7 +55,7 @@ config BCMA_DRIVER_PCI
 
 config BCMA_DRIVER_PCI_HOSTMODE
 	bool "Driver for PCI core working in hostmode"
-	depends on MIPS && BCMA_DRIVER_PCI && PCI_DRIVERS_LEGACY
+	depends on MIPS && BCMA_DRIVER_PCI && PCI_DRIVERS_LEGACY && BCMA = y
 	help
 	  PCI core hostmode operation (external PCI bus).
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-03-13 16:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-01  9:58 [PATCH v2] bcma: Prevent build of PCI host features in module Matt Redfearn
2018-03-01  9:58 ` Matt Redfearn
2018-03-01 10:45 ` Kalle Valo
2018-03-01 10:45   ` Kalle Valo
2018-03-02 17:56   ` Larry Finger
2018-03-08 12:00     ` Matt Redfearn
2018-03-08 12:00       ` Matt Redfearn
2018-03-10 11:35       ` Jonas Gorski
2018-03-13 16:48 ` [v2] " Kalle Valo
2018-03-13 16:48   ` Kalle Valo
2018-03-13 16:48 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.