Skip to contentSkip to conversation

PCI: uniphier: Fix Kconfig warning

PATCH In review YueHaibing 2 participants 2 messages Jun 2, 2020

Subsystems (2)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 PCI: uniphier: Fix Kconfig warning

WARNING: unmet direct dependencies detected for PCIE_DW_EP
Depends on [n]: PCI [=y] && PCI_ENDPOINT [=n]
Selected by [y]:
- PCIE_UNIPHIER_EP [=y] && PCI [=y] && (ARCH_UNIPHIER || COMPILE_TEST [=y]) && OF [=y] && HAS_IOMEM [=y]

Add missing dependency to fix this.

Fixes 006564dee825 ("PCI: uniphier: Add Socionext UniPhier Pro5 PCIe endpoint controller driver")
---
 drivers/pci/controller/dwc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/controller/dwc/Kconfig +1 -0
index 43a29f7a4501..044a3761c44f 100644
@@ -293,6 +293,7 @@ config PCIE_UNIPHIER_EP
 	bool "Socionext UniPhier PCIe endpoint controllers"
 	depends on ARCH_UNIPHIER || COMPILE_TEST
 	depends on OF && HAS_IOMEM
+	depends on PCI_ENDPOINT
 	select PCIE_DW_EP
 	help
 	  Say Y here if you want PCIe endpoint controller support on
Signature · 1 line
2.17.1
#1 lore raw
Quoted 5 lines · YueHaibing

WARNING: unmet direct dependencies detected for PCIE_DW_EP
Depends on [n]: PCI [=y] && PCI_ENDPOINT [=n]
Selected by [y]:
- PCIE_UNIPHIER_EP [=y] && PCI [=y] && (ARCH_UNIPHIER || COMPILE_TEST [=y]) && OF [=y] && HAS_IOMEM [=y]

Quoted 7 lines

Add missing dependency to fix this.

Fixes 006564dee825 ("PCI: uniphier: Add Socionext UniPhier Pro5 PCIe endpoint controller driver")
---
 drivers/pci/controller/dwc/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Squashed in the commit it is fixing, thanks !

Lorenzo

Quoted 16 lines
drivers/pci/controller/dwc/Kconfig +1 -0
index 43a29f7a4501..044a3761c44f 100644
@@ -293,6 +293,7 @@ config PCIE_UNIPHIER_EP
 	bool "Socionext UniPhier PCIe endpoint controllers"
 	depends on ARCH_UNIPHIER || COMPILE_TEST
 	depends on OF && HAS_IOMEM
+	depends on PCI_ENDPOINT
 	select PCIE_DW_EP
 	help
 	  Say Y here if you want PCIe endpoint controller support on
Signature · 1 line
2.17.1