summaryrefslogtreecommitdiff
path: root/include/xen
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-07-22 10:46:29 +0300
committerJuergen Gross <jgross@suse.com>2019-07-31 09:14:12 +0300
commita78d14a31666c636a9e00a589032119fb59e3b94 (patch)
tree68fe335b07b692cfd8c52459c4274ea290dfecf1 /include/xen
parent8d1502f629c9966743de45744f4c1ba93a57d105 (diff)
downloadlinux-a78d14a31666c636a9e00a589032119fb59e3b94.tar.xz
xen: avoid link error on ARM
Building the privcmd code as a loadable module on ARM, we get a link error due to the private cache management functions: ERROR: "__sync_icache_dcache" [drivers/xen/xen-privcmd.ko] undefined! Move the code into a new that is always built in when Xen is enabled, as suggested by Juergen Gross and Boris Ostrovsky. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'include/xen')
-rw-r--r--include/xen/xen-ops.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h
index 4969817124a8..98b30c1613b2 100644
--- a/include/xen/xen-ops.h
+++ b/include/xen/xen-ops.h
@@ -109,6 +109,9 @@ static inline int xen_xlate_unmap_gfn_range(struct vm_area_struct *vma,
}
#endif
+int xen_remap_vma_range(struct vm_area_struct *vma, unsigned long addr,
+ unsigned long len);
+
/*
* xen_remap_domain_gfn_array() - map an array of foreign frames by gfn
* @vma: VMA to map the pages into