diff options
author | Christoph Hellwig <hch@lst.de> | 2018-08-16 15:30:39 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-10-19 08:43:46 +0200 |
commit | dff8d6c1ed584de65aac40494d3e7468c50980c3 (patch) | |
tree | 998f71d7b0951479f511df2ac236eaf850120a06 /kernel/dma/direct.c | |
parent | 8088546832aa2c0d8f99dd56edf6384f8a9b63b3 (diff) |
swiotlb: remove the overflow buffer
Like all other dma mapping drivers just return an error code instead
of an actual memory buffer. The reason for the overflow buffer was
that at the time swiotlb was invented there was no way to check for
dma mapping errors, but this has long been fixed.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'kernel/dma/direct.c')
-rw-r--r-- | kernel/dma/direct.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c index 87a6bc2a96c0..f14c376937e5 100644 --- a/kernel/dma/direct.c +++ b/kernel/dma/direct.c @@ -14,8 +14,6 @@ #include <linux/pfn.h> #include <linux/set_memory.h> -#define DIRECT_MAPPING_ERROR 0 - /* * Most architectures use ZONE_DMA for the first 16 Megabytes, but * some use it for entirely different regions: |