projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f25e6f6
)
dma-direct: comment the dma_direct_free calling convention
author
Christoph Hellwig
<hch@lst.de>
Fri, 2 Feb 2018 08:51:14 +0000
(09:51 +0100)
committer
Christoph Hellwig
<hch@lst.de>
Mon, 12 Feb 2018 15:59:07 +0000
(15:59 +0000)
Signed-off-by: Christoph Hellwig <hch@lst.de>
lib/dma-direct.c
patch
|
blob
|
history
diff --git
a/lib/dma-direct.c
b/lib/dma-direct.c
index fdc733cf9e30a9239bf5bd497e383502081c4418..c9e8e21cb33406f33b539cfd25d82b5749071422 100644
(file)
--- a/
lib/dma-direct.c
+++ b/
lib/dma-direct.c
@@
-84,6
+84,10
@@
again:
return page_address(page);
}
+/*
+ * NOTE: this function must never look at the dma_addr argument, because we want
+ * to be able to use it as a helper for iommu implementations as well.
+ */
void dma_direct_free(struct device *dev, size_t size, void *cpu_addr,
dma_addr_t dma_addr, unsigned long attrs)
{