diff options
author | Christoph Hellwig <hch@lst.de> | 2019-10-29 09:57:32 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-11-07 17:25:57 +0100 |
commit | 4e1003aa56a7d60ddb048e43a7a51368fcfe36af (patch) | |
tree | b206b4e7b2d1c5fa9acd49c09d5fdba965d2c461 /kernel/dma/direct.c | |
parent | dma-direct: remove __dma_direct_free_pages (diff) | |
download | linux-4e1003aa56a7d60ddb048e43a7a51368fcfe36af.tar.xz linux-4e1003aa56a7d60ddb048e43a7a51368fcfe36af.zip |
dma-direct: remove the dma_handle argument to __dma_direct_alloc_pages
The argument isn't used anywhere, so stop passing it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'kernel/dma/direct.c')
-rw-r--r-- | kernel/dma/direct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c index a7a2739fb747..724c282dd943 100644 --- a/kernel/dma/direct.c +++ b/kernel/dma/direct.c @@ -83,7 +83,7 @@ static bool dma_coherent_ok(struct device *dev, phys_addr_t phys, size_t size) } struct page *__dma_direct_alloc_pages(struct device *dev, size_t size, - dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) + gfp_t gfp, unsigned long attrs) { size_t alloc_size = PAGE_ALIGN(size); int node = dev_to_node(dev); @@ -131,7 +131,7 @@ void *dma_direct_alloc_pages(struct device *dev, size_t size, struct page *page; void *ret; - page = __dma_direct_alloc_pages(dev, size, dma_handle, gfp, attrs); + page = __dma_direct_alloc_pages(dev, size, gfp, attrs); if (!page) return NULL; |