dma-mapping: simplify the dma_sync_single_range_for_{cpu,device} implementation
authorChristoph Hellwig <hch@lst.de>
Mon, 3 Dec 2018 13:58:59 +0000 (14:58 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 20:06:08 +0000 (21:06 +0100)
commit8d59b5f2a44611d7327a2a14b36090d692186f60
tree395fe8df3b3c0c871f0ddafe20a2b71aba58a451
parent20b105feda8d42360bd690b8fdf6b2f00ba4a993
dma-mapping: simplify the dma_sync_single_range_for_{cpu,device} implementation

We can just call the regular calls after adding offset the the address instead
of reimplementing them.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Tested-by: Jesper Dangaard Brouer <brouer@redhat.com>
Tested-by: Tony Luck <tony.luck@intel.com>
include/linux/dma-debug.h
include/linux/dma-mapping.h
kernel/dma/debug.c