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)
381381 */ 
382382postcore_initcall (atomic_pool_init );
383383
384+ #ifdef  CONFIG_CMA_AREAS 
384385struct  dma_contig_early_reserve  {
385386	phys_addr_t  base ;
386387	unsigned long  size ;
@@ -435,6 +436,7 @@ void __init dma_contiguous_remap(void)
435436		iotable_init (& map , 1 );
436437	}
437438}
439+ #endif 
438440
439441static  int  __dma_update_pte (pte_t  * pte , unsigned long  addr , void  * data )
440442{
Original file line number Diff line number Diff line change @@ -88,6 +88,10 @@ extern phys_addr_t arm_lowmem_limit;
8888
8989void  __init  bootmem_init (void );
9090void  arm_mm_memblock_reserve (void );
91+ #ifdef  CONFIG_CMA_AREAS 
9192void  dma_contiguous_remap (void );
93+ #else 
94+ static  inline  void  dma_contiguous_remap (void ) { }
95+ #endif 
9296
9397unsigned long  __clear_cr (unsigned long  mask );
Original file line number Diff line number Diff line change 1212 */ 
1313#ifdef  CONFIG_CMA_AREAS 
1414#define  MAX_CMA_AREAS 	(1 + CONFIG_CMA_AREAS)
15- 
16- #else 
17- #define  MAX_CMA_AREAS 	(0)
18- 
1915#endif 
2016
2117#define  CMA_MAX_NAME  64
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments