summaryrefslogtreecommitdiff
path: root/include/xen
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2017-04-07 14:15:53 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2017-04-07 14:15:53 +1000
commit3acd0be0219e4b708113eaecdb134d9821d01623 (patch)
treeb70ddefedddd5592e4f8c46f716a41455dae8263 /include/xen
parent57b9603d26ba809231233834c8127865fb0dfd49 (diff)
parent9a0f13debac9820818fc01f2e23155300bab1314 (diff)
downloadlinux-next-3acd0be0219e4b708113eaecdb134d9821d01623.tar.gz
Merge remote-tracking branch 'xen-tip/linux-next'
Diffstat (limited to 'include/xen')
-rw-r--r--include/xen/xen-ops.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h
index b5486e648607..f93911452f9e 100644
--- a/include/xen/xen-ops.h
+++ b/include/xen/xen-ops.h
@@ -34,11 +34,25 @@ u64 xen_steal_clock(int cpu);
int xen_setup_shutdown_event(void);
extern unsigned long *xen_contiguous_bitmap;
+
+#ifdef CONFIG_XEN_PV
int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,
unsigned int address_bits,
dma_addr_t *dma_handle);
void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order);
+#else
+static inline int xen_create_contiguous_region(phys_addr_t pstart,
+ unsigned int order,
+ unsigned int address_bits,
+ dma_addr_t *dma_handle)
+{
+ return 0;
+}
+
+static inline void xen_destroy_contiguous_region(phys_addr_t pstart,
+ unsigned int order) { }
+#endif
struct vm_area_struct;