diff options
author | Christoph Hellwig <hch@lst.de> | 2020-02-22 02:55:43 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-03-16 12:48:09 +0300 |
commit | fa7e2247c5729f990c7456fe09f3af99c8f2571b (patch) | |
tree | 65aa46af4ff51a93301caca46b509c34267bfe40 /include/linux/dma-noncoherent.h | |
parent | 3d0fc341c4bb66b2c41c0d1ec954a6d300e100b7 (diff) | |
download | linux-fa7e2247c5729f990c7456fe09f3af99c8f2571b.tar.xz |
dma-direct: make uncached_kernel_address more general
Rename the symbol to arch_dma_set_uncached, and pass a size to it as
well as allow an error return. That will allow reusing this hook for
in-place pagetable remapping.
As the in-place remap doesn't always require an explicit cache flush,
also detangle ARCH_HAS_DMA_PREP_COHERENT from ARCH_HAS_DMA_SET_UNCACHED.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'include/linux/dma-noncoherent.h')
-rw-r--r-- | include/linux/dma-noncoherent.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/dma-noncoherent.h b/include/linux/dma-noncoherent.h index b6b72e19b0cd..1a4039506673 100644 --- a/include/linux/dma-noncoherent.h +++ b/include/linux/dma-noncoherent.h @@ -108,6 +108,6 @@ static inline void arch_dma_prep_coherent(struct page *page, size_t size) } #endif /* CONFIG_ARCH_HAS_DMA_PREP_COHERENT */ -void *uncached_kernel_address(void *addr); +void *arch_dma_set_uncached(void *addr, size_t size); #endif /* _LINUX_DMA_NONCOHERENT_H */ |