]> git.ipfire.org Git - thirdparty/kernel/linux.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)
commited6ccf10f24bdfc1955bc8b976ddedc370fc3869
tree392b8f04bf337cf9cbf3b5c698bde51d84c30f84
parent4788ba5792cc1368ba4867e1488dc168b4fe97b7
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: 356da6d0cd ("dma-mapping: bypass indirect calls for dma-direct")
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/dma-mapping.h