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

dmaengine: drivers: Kconfig: add HAS_IOMEM dependency to DW_AXI_DMAC

If HAS_IOMEM is not defined and DW_AXI_DMAC is enabled under COMPILE_TEST,
the build fails with the following error:
dw-axi-dmac-platform.c:(.text+0xc4): undefined reference to
`devm_ioremap_resource'
Link: https://www.spinics.net/lists/dmaengine/msg25188.html

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Sia Jee Heng <jee.heng.sia@intel.com>
Link: https://lore.kernel.org/r/20210125013255.25799-13-jee.heng.sia@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Sia Jee Heng and committed by
Vinod Koul
cd0f00c3 8fb1dae0

+1
+1
drivers/dma/Kconfig
··· 172 172 config DW_AXI_DMAC 173 173 tristate "Synopsys DesignWare AXI DMA support" 174 174 depends on OF || COMPILE_TEST 175 + depends on HAS_IOMEM 175 176 select DMA_ENGINE 176 177 select DMA_VIRTUAL_CHANNELS 177 178 help