summaryrefslogtreecommitdiffstats
path: root/kernel/dma/pool.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-08-17 17:06:40 +0200
committerChristoph Hellwig <hch@lst.de>2020-09-11 09:10:29 +0200
commit2f5388a29be82a62529d146499e70987e856f6f7 (patch)
tree244fc04e7926e48cf0faae79dbe3250ec3f00ef3 /kernel/dma/pool.c
parentdma-mapping: add (back) arch_dma_mark_clean for ia64 (diff)
downloadlinux-2f5388a29be82a62529d146499e70987e856f6f7.tar.xz
linux-2f5388a29be82a62529d146499e70987e856f6f7.zip
dma-direct: remove dma_direct_{alloc,free}_pages
Just merge these helpers into the main dma_direct_{alloc,free} routines, as the additional checks are always false for the two callers. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'kernel/dma/pool.c')
-rw-r--r--kernel/dma/pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/dma/pool.c b/kernel/dma/pool.c
index 1281c0f0442b..fe11643ff9cc 100644
--- a/kernel/dma/pool.c
+++ b/kernel/dma/pool.c
@@ -115,7 +115,7 @@ static int atomic_pool_expand(struct gen_pool *pool, size_t pool_size,
#endif
/*
* Memory in the atomic DMA pools must be unencrypted, the pools do not
- * shrink so no re-encryption occurs in dma_direct_free_pages().
+ * shrink so no re-encryption occurs in dma_direct_free().
*/
ret = set_memory_decrypted((unsigned long)page_to_virt(page),
1 << order);