Skip to content

Commit

Permalink
dma-direct: comment the dma_direct_free calling convention
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
Christoph Hellwig committed Feb 12, 2018
1 parent f25e6f6 commit 42ed645
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dma-direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ void *dma_direct_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle,
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)
{
Expand Down

0 comments on commit 42ed645

Please sign in to comment.