]> git.baikalelectronics.ru Git - kernel.git/commit
bcma: Prevent build of PCI host features in module
authorMatt Redfearn <matt.redfearn@mips.com>
Thu, 1 Mar 2018 09:58:12 +0000 (09:58 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 13 Mar 2018 16:47:47 +0000 (18:47 +0200)
commit5ca84e121a8fb2fafa27dd88443490c05882b22d
tree3d2bcb3a97a527cb7a58f717eb9a6c07cf5e962b
parent51e584f74eefb538b016ebb01881e7cb8bad62ca
bcma: Prevent build of PCI host features in module

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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/bcma/Kconfig