dma-direct: comment the dma_direct_free calling convention
"Linux Kernel Mailing List" <[email protected]> Fri, 16 Feb 2018 20:48:25 +0000 (UTC)
| Newsgroups | gmane.linux.kernel.commits.head |
|---|---|
| Message-ID | <[email protected]> |
Web: https://git.kernel.org/torvalds/c/42ed64524d846b96afaa8b3f9ba045bcaf11ab0f Commit: 42ed64524d846b96afaa8b3f9ba045bcaf11ab0f Parent: f25e6f6b4eae7e25e92e91a570cae84bf83e751a Refname: refs/heads/master Author: Christoph Hellwig <[email protected]> AuthorDate: Fri Feb 2 09:51:14 2018 +0100 Committer: Christoph Hellwig <[email protected]> CommitDate: Mon Feb 12 15:59:07 2018 +0000 dma-direct: comment the dma_direct_free calling convention Signed-off-by: Christoph Hellwig <[email protected]> --- lib/dma-direct.c | 4 ++++ 1 file changed, 4 insertions(+) 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: 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) { -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html