scsi: Add NO_DMA dummies for SCSI DMA mapping API
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 16 Mar 2018 13:25:44 +0000 (14:25 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 16 Mar 2018 18:58:28 +0000 (19:58 +0100)
commitbff739b6559e2fcec37cd0465c7aa37663f4baeb
treeb93dd685f674fead91c6506a4183d94d2119fb9e
parentc1ce6c2beea38171a57c56e55875318cef9a2ad5
scsi: Add NO_DMA dummies for SCSI DMA mapping API

Add dummies for scsi_dma_{,un}map(), to allow compile-testing if
NO_DMA=y.

This prevents the following from showing up later:

    ERROR: "scsi_dma_unmap" [drivers/firewire/firewire-sbp2.ko] undefined!
    ERROR: "scsi_dma_map" [drivers/firewire/firewire-sbp2.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/scsi/scsi_cmnd.h