File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -381,6 +381,7 @@ static int __init atomic_pool_init(void)
381
381
*/
382
382
postcore_initcall (atomic_pool_init );
383
383
384
+ #ifdef CONFIG_CMA_AREAS
384
385
struct dma_contig_early_reserve {
385
386
phys_addr_t base ;
386
387
unsigned long size ;
@@ -435,6 +436,7 @@ void __init dma_contiguous_remap(void)
435
436
iotable_init (& map , 1 );
436
437
}
437
438
}
439
+ #endif
438
440
439
441
static int __dma_update_pte (pte_t * pte , unsigned long addr , void * data )
440
442
{
Original file line number Diff line number Diff line change @@ -88,6 +88,10 @@ extern phys_addr_t arm_lowmem_limit;
88
88
89
89
void __init bootmem_init (void );
90
90
void arm_mm_memblock_reserve (void );
91
+ #ifdef CONFIG_CMA_AREAS
91
92
void dma_contiguous_remap (void );
93
+ #else
94
+ static inline void dma_contiguous_remap (void ) { }
95
+ #endif
92
96
93
97
unsigned long __clear_cr (unsigned long mask );
Original file line number Diff line number Diff line change 12
12
*/
13
13
#ifdef CONFIG_CMA_AREAS
14
14
#define MAX_CMA_AREAS (1 + CONFIG_CMA_AREAS)
15
-
16
- #else
17
- #define MAX_CMA_AREAS (0)
18
-
19
15
#endif
20
16
21
17
#define CMA_MAX_NAME 64
You can’t perform that action at this time.
0 commit comments