aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-02-02 03:51:14 -0500
committerChristoph Hellwig <hch@lst.de>2018-02-12 10:59:07 -0500
commit42ed64524d846b96afaa8b3f9ba045bcaf11ab0f (patch)
treef17b858f39a0f224dd76109e3a972b68f55aba55
parentf25e6f6b4eae7e25e92e91a570cae84bf83e751a (diff)
dma-direct: comment the dma_direct_free calling convention
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--lib/dma-direct.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/dma-direct.c b/lib/dma-direct.c
index fdc733cf9e30..c9e8e21cb334 100644
--- a/lib/dma-direct.c
+++ b/lib/dma-direct.c
@@ -84,6 +84,10 @@ again:
84 return page_address(page); 84 return page_address(page);
85} 85}
86 86
87/*
88 * NOTE: this function must never look at the dma_addr argument, because we want
89 * to be able to use it as a helper for iommu implementations as well.
90 */
87void dma_direct_free(struct device *dev, size_t size, void *cpu_addr, 91void dma_direct_free(struct device *dev, size_t size, void *cpu_addr,
88 dma_addr_t dma_addr, unsigned long attrs) 92 dma_addr_t dma_addr, unsigned long attrs)
89{ 93{