]> git.baikalelectronics.ru Git - kernel.git/commit
dma-mapping: properly stub out the DMA API for !CONFIG_HAS_DMA
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Dec 2018 06:52:13 +0000 (07:52 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 4 Jan 2019 08:03:17 +0000 (09:03 +0100)
commit293037e6ae90d69bc59de7e2d455aa88c5083760
tree392b8f04bf337cf9cbf3b5c698bde51d84c30f84
parente95ad8d9865c29738973af51b0cd64b73b21d186
dma-mapping: properly stub out the DMA API for !CONFIG_HAS_DMA

This avoids link failures in drivers using the DMA API, when they
are compiled for user mode Linux with CONFIG_COMPILE_TEST=y.

Fixes: b5c66e1f41 ("dma-mapping: bypass indirect calls for dma-direct")
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/dma-mapping.h