diff options
| author | Christoph Hellwig <hch@lst.de> | 2019-07-24 08:07:28 -0400 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2019-09-11 06:43:27 -0400 |
| commit | 5489c8e0cf036d20099fadb9d05ab627d90cff92 (patch) | |
| tree | 9652a442670210f06ef0f4ed07848e41dcf63b52 | |
| parent | bf7954e797cded8afa2550d0872afde3823c533e (diff) | |
arm64: use asm-generic/dma-mapping.h
Now that the Xen special cases are gone nothing worth mentioning is
left in the arm64 <asm/dma-mapping.h> file, so switch to use the
asm-generic version instead.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Will Deacon <will@kernel.org>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
| -rw-r--r-- | arch/arm64/include/asm/Kbuild | 1 | ||||
| -rw-r--r-- | arch/arm64/include/asm/dma-mapping.h | 22 | ||||
| -rw-r--r-- | arch/arm64/mm/dma-mapping.c | 1 |
3 files changed, 2 insertions, 22 deletions
diff --git a/arch/arm64/include/asm/Kbuild b/arch/arm64/include/asm/Kbuild index c52e151afab0..98a5405c8558 100644 --- a/arch/arm64/include/asm/Kbuild +++ b/arch/arm64/include/asm/Kbuild | |||
| @@ -4,6 +4,7 @@ generic-y += delay.h | |||
| 4 | generic-y += div64.h | 4 | generic-y += div64.h |
| 5 | generic-y += dma.h | 5 | generic-y += dma.h |
| 6 | generic-y += dma-contiguous.h | 6 | generic-y += dma-contiguous.h |
| 7 | generic-y += dma-mapping.h | ||
| 7 | generic-y += early_ioremap.h | 8 | generic-y += early_ioremap.h |
| 8 | generic-y += emergency-restart.h | 9 | generic-y += emergency-restart.h |
| 9 | generic-y += hw_irq.h | 10 | generic-y += hw_irq.h |
diff --git a/arch/arm64/include/asm/dma-mapping.h b/arch/arm64/include/asm/dma-mapping.h deleted file mode 100644 index 67243255a858..000000000000 --- a/arch/arm64/include/asm/dma-mapping.h +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 2 | /* | ||
| 3 | * Copyright (C) 2012 ARM Ltd. | ||
| 4 | */ | ||
| 5 | #ifndef __ASM_DMA_MAPPING_H | ||
| 6 | #define __ASM_DMA_MAPPING_H | ||
| 7 | |||
| 8 | #ifdef __KERNEL__ | ||
| 9 | |||
| 10 | #include <linux/types.h> | ||
| 11 | #include <linux/vmalloc.h> | ||
| 12 | |||
| 13 | #include <xen/xen.h> | ||
| 14 | #include <asm/xen/hypervisor.h> | ||
| 15 | |||
| 16 | static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) | ||
| 17 | { | ||
| 18 | return NULL; | ||
| 19 | } | ||
| 20 | |||
| 21 | #endif /* __KERNEL__ */ | ||
| 22 | #endif /* __ASM_DMA_MAPPING_H */ | ||
diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index c44eb72d500f..9239416e93d4 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | #include <linux/cache.h> | 8 | #include <linux/cache.h> |
| 9 | #include <linux/dma-noncoherent.h> | 9 | #include <linux/dma-noncoherent.h> |
| 10 | #include <linux/dma-iommu.h> | 10 | #include <linux/dma-iommu.h> |
| 11 | #include <xen/xen.h> | ||
| 11 | #include <xen/swiotlb-xen.h> | 12 | #include <xen/swiotlb-xen.h> |
| 12 | 13 | ||
| 13 | #include <asm/cacheflush.h> | 14 | #include <asm/cacheflush.h> |
