dmaengine: tegra: explicitly select DMA_VIRTUAL_CHANNELS
authorMark Salter <msalter@redhat.com>
Wed, 29 Mar 2023 17:21:29 +0000 (13:21 -0400)
committerVinod Koul <vkoul@kernel.org>
Fri, 31 Mar 2023 08:03:50 +0000 (13:33 +0530)
commit7511f28792c6c724cc584a42f3eeb2fa5af689c4
tree9e87f82b93c2c59e7b6d68d720815a905b699fd6
parentfe8f1a2e9b7c4519a145ab8110dec59fea3c532c
dmaengine: tegra: explicitly select DMA_VIRTUAL_CHANNELS

Enabling TEGRA186_GPC_DMA will cause this build failure unless some other
DMA driver which uses DMA_VIRTUAL_CHANNELS is enabled:

  ERROR: modpost: "vchan_dma_desc_free_list" [drivers/dma/tegra186-gpc-dma.ko] undefined!
  ERROR: modpost: "vchan_init" [drivers/dma/tegra186-gpc-dma.ko] undefined!
  ERROR: modpost: "vchan_tx_submit" [drivers/dma/tegra186-gpc-dma.ko] undefined!
  ERROR: modpost: "vchan_tx_desc_free" [drivers/dma/tegra186-gpc-dma.ko] undefined!
  ERROR: modpost: "vchan_find_desc" [drivers/dma/tegra186-gpc-dma.ko] undefined!
  make[1]: *** [scripts/Makefile.modpost:136: Module.symvers] Error 1

Add an explicit select of DMA_VIRTUAL_CHANNELS to avoid this.

Signed-off-by: Mark Salter <msalter@redhat.com>
Link: https://lore.kernel.org/r/20230329172129.88403-1-msalter@redhat.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/Kconfig