Skip to content

Commit 58f743e

Browse files
Paul Gortmakerlinvjw
authored andcommitted
bcma: fix build error on MIPS; implicit pcibios_enable_device
The following is seen during allmodconfig builds for MIPS: drivers/bcma/driver_pci_host.c:518:2: error: implicit declaration of function 'pcibios_enable_device' [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors make[3]: *** [drivers/bcma/driver_pci_host.o] Error 1 Most likey introduced by commit 49dc957 "bcma: add PCIe host controller" Add the header instead of implicitly assuming it will be present. Sounds like a good idea, but that alone doesn't fix anything. The real problem is that the Kconfig has settings related to whether PCI is possible, i.e. config BCMA_HOST_PCI_POSSIBLE bool depends on BCMA && PCI = y default y config BCMA_HOST_PCI bool "Support for BCMA on PCI-host bus" depends on BCMA_HOST_PCI_POSSIBLE ...but what is missing is that BCMA_DRIVER_PCI_HOSTMODE doesn't have any dependencies on the above. Add one. CC: Hauke Mehrtens <hauke@hauke-m.de> CC: John W. Linville <linville@tuxdriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Acked-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 7ab2485 commit 58f743e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/bcma/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ config BCMA_HOST_PCI
2929

3030
config BCMA_DRIVER_PCI_HOSTMODE
3131
bool "Driver for PCI core working in hostmode"
32-
depends on BCMA && MIPS
32+
depends on BCMA && MIPS && BCMA_HOST_PCI
3333
help
3434
PCI core hostmode operation (external PCI bus).
3535

‎drivers/bcma/driver_pci_host.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*/
1111

1212
#include "bcma_private.h"
13+
#include <linux/pci.h>
1314
#include <linux/export.h>
1415
#include <linux/bcma/bcma.h>
1516
#include <asm/paccess.h>

0 commit comments

Comments
 (0)