Skip to content

Commit 5db5d93

Browse files
author
Christoph Hellwig
committed
dma-mapping: remove <asm/dma-contiguous.h>
Just provide a weak default definition of dma_contiguous_early_fixup and let arm override it. Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 0b1abd1 commit 5db5d93

File tree

6 files changed

+7
-28
lines changed

6 files changed

+7
-28
lines changed

arch/arm/include/asm/dma-contiguous.h

Lines changed: 0 additions & 15 deletions
This file was deleted.

arch/arm/mm/dma-mapping.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include <asm/dma-iommu.h>
3535
#include <asm/mach/map.h>
3636
#include <asm/system_info.h>
37-
#include <asm/dma-contiguous.h>
3837
#include <xen/swiotlb-xen.h>
3938

4039
#include "dma.h"

include/asm-generic/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ mandatory-y += current.h
1616
mandatory-y += delay.h
1717
mandatory-y += device.h
1818
mandatory-y += div64.h
19-
mandatory-y += dma-contiguous.h
2019
mandatory-y += dma-mapping.h
2120
mandatory-y += dma.h
2221
mandatory-y += emergency-restart.h

include/asm-generic/dma-contiguous.h

Lines changed: 0 additions & 10 deletions
This file was deleted.

include/linux/dma-map-ops.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ bool dma_release_from_contiguous(struct device *dev, struct page *pages,
116116
int count);
117117
struct page *dma_alloc_contiguous(struct device *dev, size_t size, gfp_t gfp);
118118
void dma_free_contiguous(struct device *dev, struct page *page, size_t size);
119+
120+
void dma_contiguous_early_fixup(phys_addr_t base, unsigned long size);
119121
#else /* CONFIG_DMA_CMA */
120122
static inline struct cma *dev_get_cma_area(struct device *dev)
121123
{

kernel/dma/contiguous.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
#endif
4545

4646
#include <asm/page.h>
47-
#include <asm/dma-contiguous.h>
4847

4948
#include <linux/memblock.h>
5049
#include <linux/err.h>
@@ -212,6 +211,11 @@ void __init dma_contiguous_reserve(phys_addr_t limit)
212211
}
213212
}
214213

214+
void __weak
215+
dma_contiguous_early_fixup(phys_addr_t base, unsigned long size)
216+
{
217+
}
218+
215219
/**
216220
* dma_contiguous_reserve_area() - reserve custom contiguous area
217221
* @size: Size of the reserved area (in bytes),

0 commit comments

Comments
 (0)