dma-coherent: Add NO_DMA dummies for managed DMA API
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 16 Mar 2018 13:25:41 +0000 (14:25 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 16 Mar 2018 18:58:27 +0000 (19:58 +0100)
commitab642e952f80c66c5592f0e2c35588843a813df8
tree0ee8a756f466f2253f25b75db3a2fb1582cf6279
parentf29ab49b5388b2f829cf99859bc5f8ad8ec4d06a
dma-coherent: Add NO_DMA dummies for managed DMA API

Add dummies for dmam_{alloc,free}_coherent(), to allow compile-testing
if NO_DMA=y.

This prevents the following from showing up later:

    ERROR: "dmam_alloc_coherent" [drivers/net/ethernet/arc/arc_emac.ko] undefined!
    ERROR: "dmam_free_coherent" [drivers/net/ethernet/apm/xgene/xgene-enet.ko] undefined!
    ERROR: "dmam_alloc_coherent" [drivers/net/ethernet/apm/xgene/xgene-enet.ko] undefined!
    ERROR: "dmam_alloc_coherent" [drivers/mtd/nand/hisi504_nand.ko] undefined!
    ERROR: "dmam_alloc_coherent" [drivers/mmc/host/dw_mmc.ko] undefined!

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>
include/linux/dma-mapping.h