summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2018-03-16 16:25:40 +0300
committerChristoph Hellwig <hch@lst.de>2018-03-16 21:58:27 +0300
commitf29ab49b5388b2f829cf99859bc5f8ad8ec4d06a (patch)
treed8fb169b5d63e0ae56bd03bcc81c7a7fb041e1df /virt
parent0c8efd610b58cb23cefdfa12015799079aef94ae (diff)
downloadlinux-f29ab49b5388b2f829cf99859bc5f8ad8ec4d06a.tar.xz
dma-mapping: Convert NO_DMA get_dma_ops() into a real dummy
If NO_DMA=y, get_dma_ops() returns a reference to the non-existing symbol bad_dma_ops, thus causing a link failure if it is ever used. Make get_dma_ops() return NULL instead, to avoid the link failure. This allows to improve compile-testing, and limits the need to keep on sprinkling dependencies on HAS_DMA all over the place. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Mark Brown <broonie@kernel.org> Acked-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions