Skip to content

Commit

Permalink
ssb: Prevent build of PCI host features in module
Browse files Browse the repository at this point in the history
Attempting to build ssb.ko with CONFIG_SSB_DRIVER_PCICORE=y results in
a build error due to use of symbols not exported from vmlinux:

ERROR: "pcibios_enable_device" [drivers/ssb/ssb.ko] undefined!
ERROR: "register_pci_controller" [drivers/ssb/ssb.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_SSB=m

Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Matt Redfearn authored and Kalle Valo committed Feb 28, 2018
1 parent 985324a commit 882164a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ssb/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ config SSB_SERIAL

config SSB_DRIVER_PCICORE_POSSIBLE
bool
depends on SSB_PCIHOST
depends on SSB_PCIHOST && SSB = y
default y

config SSB_DRIVER_PCICORE
Expand Down

0 comments on commit 882164a

Please sign in to comment.