Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: endpoint: Make PCI_ENDPOINT 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.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

authored by

Geert Uytterhoeven and committed by
Bjorn Helgaas
c849e551 2ea659a9

+1
+1
drivers/pci/endpoint/Kconfig
··· 6 6 7 7 config PCI_ENDPOINT 8 8 bool "PCI Endpoint Support" 9 + depends on HAS_DMA 9 10 help 10 11 Enable this configuration option to support configurable PCI 11 12 endpoint. This should be enabled if the platform has a PCI