Skip to content

Commit 42ed645

Browse files
author
Christoph Hellwig
committed
dma-direct: comment the dma_direct_free calling convention
Signed-off-by: Christoph Hellwig <[email protected]>
1 parent f25e6f6 commit 42ed645

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/dma-direct.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ void *dma_direct_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle,
8484
return page_address(page);
8585
}
8686

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+
*/
8791
void dma_direct_free(struct device *dev, size_t size, void *cpu_addr,
8892
dma_addr_t dma_addr, unsigned long attrs)
8993
{

0 commit comments

Comments
 (0)