@@ -42,16 +42,12 @@ int xen_setup_shutdown_event(void);
42
42
43
43
extern unsigned long * xen_contiguous_bitmap ;
44
44
45
- #ifdef CONFIG_XEN_PV
45
+ #if defined( CONFIG_XEN_PV ) || defined( CONFIG_ARM ) || defined( CONFIG_ARM64 )
46
46
int xen_create_contiguous_region (phys_addr_t pstart , unsigned int order ,
47
47
unsigned int address_bits ,
48
48
dma_addr_t * dma_handle );
49
49
50
50
void xen_destroy_contiguous_region (phys_addr_t pstart , unsigned int order );
51
-
52
- int xen_remap_pfn (struct vm_area_struct * vma , unsigned long addr ,
53
- xen_pfn_t * pfn , int nr , int * err_ptr , pgprot_t prot ,
54
- unsigned int domid , bool no_translate , struct page * * pages );
55
51
#else
56
52
static inline int xen_create_contiguous_region (phys_addr_t pstart ,
57
53
unsigned int order ,
@@ -63,7 +59,13 @@ static inline int xen_create_contiguous_region(phys_addr_t pstart,
63
59
64
60
static inline void xen_destroy_contiguous_region (phys_addr_t pstart ,
65
61
unsigned int order ) { }
62
+ #endif
66
63
64
+ #if defined(CONFIG_XEN_PV )
65
+ int xen_remap_pfn (struct vm_area_struct * vma , unsigned long addr ,
66
+ xen_pfn_t * pfn , int nr , int * err_ptr , pgprot_t prot ,
67
+ unsigned int domid , bool no_translate , struct page * * pages );
68
+ #else
67
69
static inline int xen_remap_pfn (struct vm_area_struct * vma , unsigned long addr ,
68
70
xen_pfn_t * pfn , int nr , int * err_ptr ,
69
71
pgprot_t prot , unsigned int domid ,
0 commit comments