summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/mm
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-02-21 21:24:02 +0100
committerChristoph Hellwig <hch@lst.de>2020-03-16 10:48:02 +0100
commit4f8232bbf887123f78bcdca3dfd2b3dfa52a0112 (patch)
treeec534d3d2c43b28cf92423e28abc9fa750416384 /arch/microblaze/mm
parentdma-coherent: fix integer overflow in the reserved-memory dma allocation (diff)
downloadlinux-4f8232bbf887123f78bcdca3dfd2b3dfa52a0112.tar.xz
linux-4f8232bbf887123f78bcdca3dfd2b3dfa52a0112.zip
dma-direct: remove the cached_kernel_address hook
dma-direct now finds the kernel address for coherent allocations based on the dma address, so the cached_kernel_address hooks is unused and can be removed entirely. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'arch/microblaze/mm')
-rw-r--r--arch/microblaze/mm/consistent.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/microblaze/mm/consistent.c b/arch/microblaze/mm/consistent.c
index 8c5f0c332d8b..cede7c5e8135 100644
--- a/arch/microblaze/mm/consistent.c
+++ b/arch/microblaze/mm/consistent.c
@@ -49,11 +49,4 @@ void *uncached_kernel_address(void *ptr)
pr_warn("ERROR: Your cache coherent area is CACHED!!!\n");
return (void *)addr;
}
-
-void *cached_kernel_address(void *ptr)
-{
- unsigned long addr = (unsigned long)ptr;
-
- return (void *)(addr & ~UNCACHED_SHADOW_MASK);
-}
#endif /* CONFIG_MMU */