]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
dma-direct: comment the dma_direct_free calling convention
authorChristoph Hellwig <hch@lst.de>
Fri, 2 Feb 2018 08:51:14 +0000 (09:51 +0100)
committerChristoph 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

index fdc733cf9e30a9239bf5bd497e383502081c4418..c9e8e21cb33406f33b539cfd25d82b5749071422 100644 (file)
@@ -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)
 {