diff options
author | Christoph Hellwig <hch@lst.de> | 2019-08-13 03:25:13 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2019-08-16 17:32:26 -0400 |
commit | 6c13bb1d58d7a6002eb44e1595897250f0b0eec6 (patch) | |
tree | e254d5dd097841f84a9e68f72e042627b076fa2a | |
parent | df41017eafd267c08acbfff99d34e4f96bbfbc92 (diff) |
ia64: remove CONFIG_SWIOTLB ifdefs
CONFIG_SWIOTLB is now unconditionally selected on ia64, so remove the
ifdefs.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lkml.kernel.org/r/20190813072514.23299-28-hch@lst.de
Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r-- | arch/ia64/kernel/dma-mapping.c | 2 | ||||
-rw-r--r-- | arch/ia64/mm/init.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/arch/ia64/kernel/dma-mapping.c b/arch/ia64/kernel/dma-mapping.c index 53aaa8597920..4a3262795890 100644 --- a/arch/ia64/kernel/dma-mapping.c +++ b/arch/ia64/kernel/dma-mapping.c | |||
@@ -8,7 +8,6 @@ int iommu_detected __read_mostly; | |||
8 | const struct dma_map_ops *dma_ops; | 8 | const struct dma_map_ops *dma_ops; |
9 | EXPORT_SYMBOL(dma_ops); | 9 | EXPORT_SYMBOL(dma_ops); |
10 | 10 | ||
11 | #ifdef CONFIG_SWIOTLB | ||
12 | void *arch_dma_alloc(struct device *dev, size_t size, | 11 | void *arch_dma_alloc(struct device *dev, size_t size, |
13 | dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) | 12 | dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) |
14 | { | 13 | { |
@@ -26,4 +25,3 @@ long arch_dma_coherent_to_pfn(struct device *dev, void *cpu_addr, | |||
26 | { | 25 | { |
27 | return page_to_pfn(virt_to_page(cpu_addr)); | 26 | return page_to_pfn(virt_to_page(cpu_addr)); |
28 | } | 27 | } |
29 | #endif | ||
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index 1979cdb61d7c..678b98a09c85 100644 --- a/arch/ia64/mm/init.c +++ b/arch/ia64/mm/init.c | |||
@@ -68,7 +68,6 @@ __ia64_sync_icache_dcache (pte_t pte) | |||
68 | set_bit(PG_arch_1, &page->flags); /* mark page as clean */ | 68 | set_bit(PG_arch_1, &page->flags); /* mark page as clean */ |
69 | } | 69 | } |
70 | 70 | ||
71 | #ifdef CONFIG_SWIOTLB | ||
72 | /* | 71 | /* |
73 | * Since DMA is i-cache coherent, any (complete) pages that were written via | 72 | * Since DMA is i-cache coherent, any (complete) pages that were written via |
74 | * DMA can be marked as "clean" so that lazy_mmu_prot_update() doesn't have to | 73 | * DMA can be marked as "clean" so that lazy_mmu_prot_update() doesn't have to |
@@ -83,7 +82,6 @@ void arch_sync_dma_for_cpu(struct device *dev, phys_addr_t paddr, | |||
83 | set_bit(PG_arch_1, &pfn_to_page(pfn)->flags); | 82 | set_bit(PG_arch_1, &pfn_to_page(pfn)->flags); |
84 | } while (++pfn <= PHYS_PFN(paddr + size - 1)); | 83 | } while (++pfn <= PHYS_PFN(paddr + size - 1)); |
85 | } | 84 | } |
86 | #endif | ||
87 | 85 | ||
88 | inline void | 86 | inline void |
89 | ia64_set_rbs_bot (void) | 87 | ia64_set_rbs_bot (void) |