]> asedeno.scripts.mit.edu Git - linux.git/commit
xen: avoid link error on ARM
authorArnd Bergmann <arnd@arndb.de>
Mon, 22 Jul 2019 07:46:29 +0000 (09:46 +0200)
committerJuergen Gross <jgross@suse.com>
Wed, 31 Jul 2019 06:14:12 +0000 (08:14 +0200)
commita78d14a31666c636a9e00a589032119fb59e3b94
tree68fe335b07b692cfd8c52459c4274ea290dfecf1
parent8d1502f629c9966743de45744f4c1ba93a57d105
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>
drivers/xen/privcmd.c
drivers/xen/xlate_mmu.c
include/xen/xen-ops.h