PCI: endpoint: PCI_ENDPOINT should depend on HAS_DMA
Subsystems (2)
PATCH 1/1 PCI: endpoint: PCI_ENDPOINT should depend on HAS_DMA
If NO_DMA=y:
drivers/built-in.o: In function `__pci_epc_create':
(.text+0xef4e): undefined reference to bad_dma_ops' drivers/built-in.o: In function pci_epc_add_epf':
(.text+0xf676): undefined reference to bad_dma_ops' drivers/built-in.o: In function pci_epf_alloc_space':
(.text+0xfa32): undefined reference to bad_dma_ops' drivers/built-in.o: In function pci_epf_free_space':
(.text+0xfac4): undefined reference to `bad_dma_ops'
Add a dependency on HAS_DMA to fix this.
---
Should PCI_ENDPOINT depend on CONFIG_PCI instead?
--- drivers/pci/endpoint/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/pci/endpoint/Kconfig +1 -0
@@ -6,6 +6,7 @@ menu "PCI Endpoint" config PCI_ENDPOINT bool "PCI Endpoint Support" + depends on HAS_DMA help Enable this configuration option to support configurable PCI endpoint. This should be enabled if the platform has a PCI
Signature · 1 line
2.7.4
Bjorn Helgaas
AppliedQuoted 11 lines · Geert Uytterhoeven
If NO_DMA=y:
drivers/built-in.o: In function `__pci_epc_create':
(.text+0xef4e): undefined reference tobad_dma_ops' drivers/built-in.o: In functionpci_epc_add_epf':
(.text+0xf676): undefined reference tobad_dma_ops' drivers/built-in.o: In functionpci_epf_alloc_space':
(.text+0xfa32): undefined reference tobad_dma_ops' drivers/built-in.o: In functionpci_epf_free_space':
(.text+0xfac4): undefined reference to `bad_dma_ops'
Quoted 3 lines
Add a dependency on
HAS_DMAto fix this.Signed-off-by Geert Uytterhoeven <[email protected]>
Applied to for-linus for v4.12, thanks!
Quoted 2 lines
---
ShouldPCI_ENDPOINTdepend onCONFIG_PCIinstead?
I *think* we want HAS_DMA, not CONFIG_PCI, because CONFIG_PCI means we want the infrastructure for PCI host bridges, enumerating children of the bridges, etc. I think we want to allow PCI_ENDPOINT without all that.
Kishon?
Quoted 19 lines
--- drivers/pci/endpoint/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/pci/endpoint/Kconfig +1
-0@@ -6,6 +6,7 @@ menu "PCI Endpoint" config PCI_ENDPOINT bool "PCI Endpoint Support" + depends on HAS_DMA help Enable this configuration option to support configurable PCI endpoint. This should be enabled if the platform has a PCISignature · 1 line
2.7.4
Hi Bjorn,
Quoted 21 lines · Bjorn Helgaas
Quoted 11 lines · Geert Uytterhoeven
If NO_DMA=y:
drivers/built-in.o: In function `__pci_epc_create':
(.text+0xef4e): undefined reference tobad_dma_ops' drivers/built-in.o: In functionpci_epc_add_epf':
(.text+0xf676): undefined reference tobad_dma_ops' drivers/built-in.o: In functionpci_epf_alloc_space':
(.text+0xfa32): undefined reference tobad_dma_ops' drivers/built-in.o: In functionpci_epf_free_space':
(.text+0xfac4): undefined reference to `bad_dma_ops'Quoted 3 lines
Add a dependency on
HAS_DMAto fix this.Signed-off-by Geert Uytterhoeven <[email protected]>Applied to for-linus for v4.12, thanks!
Quoted 2 lines
---
ShouldPCI_ENDPOINTdepend onCONFIG_PCIinstead?
Quoted 6 lines
I *think* we want
HAS_DMA, notCONFIG_PCI, becauseCONFIG_PCImeans we want the infrastructure for PCI host bridges, enumerating children of the bridges, etc. I think we want to allowPCI_ENDPOINTwithout all that.Kishon?
right. CONFIG_PCI is for enabling the host infrastructure and PCI_ENDPOINT and CONFIG_PCI should be completely independent of each other.
Thanks
Kishon
Hi Kishon,
Quoted 27 lines · Kishon Vijay Abraham I
Quoted 26 lines · Bjorn Helgaas
Quoted 11 lines · Geert Uytterhoeven
If NO_DMA=y:
drivers/built-in.o: In function `__pci_epc_create':
(.text+0xef4e): undefined reference tobad_dma_ops' drivers/built-in.o: In functionpci_epc_add_epf':
(.text+0xf676): undefined reference tobad_dma_ops' drivers/built-in.o: In functionpci_epf_alloc_space':
(.text+0xfa32): undefined reference tobad_dma_ops' drivers/built-in.o: In functionpci_epf_free_space':
(.text+0xfac4): undefined reference to `bad_dma_ops'Quoted 3 lines
Add a dependency on
HAS_DMAto fix this.Signed-off-by Geert Uytterhoeven <[email protected]>Applied to for-linus for v4.12, thanks!
Quoted 2 lines
---
ShouldPCI_ENDPOINTdepend onCONFIG_PCIinstead?I *think* we want
HAS_DMA, notCONFIG_PCI, becauseCONFIG_PCImeans we want the infrastructure for PCI host bridges, enumerating children of the bridges, etc. I think we want to allowPCI_ENDPOINTwithout all that.
Quoted 4 lines
Quoted 1 line
Kishon?
right.
CONFIG_PCIis for enabling the host infrastructure andPCI_ENDPOINTandCONFIG_PCIshould be completely independent of each other.
OK, so HAS_DMA is the right dependency.
Thanks for confirming!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds