From: Ben Hutchings Date: Wed, 11 Jul 2018 23:18:22 +0000 (+0100) Subject: arm64: mm: Export __sync_icache_dcache() for xen-privcmd X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c5157101e7793b42a56e07368c7f4cb73fb58008;p=linux.git arm64: mm: Export __sync_icache_dcache() for xen-privcmd The xen-privcmd driver, which can be modular, calls set_pte_at() which in turn may call __sync_icache_dcache(). The call to __sync_icache_dcache() may be optimised out because it is conditional on !pte_special(), and xen-privcmd calls pte_mkspecial(). But it seems unwise to rely on this optimisation. Fixes: 3ad0876554ca ("xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE") Acked-by: Catalin Marinas Signed-off-by: Ben Hutchings Signed-off-by: Will Deacon --- diff --git a/arch/arm64/mm/flush.c b/arch/arm64/mm/flush.c index 9786f9d5d3dcb..30695a8681074 100644 --- a/arch/arm64/mm/flush.c +++ b/arch/arm64/mm/flush.c @@ -66,6 +66,7 @@ void __sync_icache_dcache(pte_t pte) sync_icache_aliases(page_address(page), PAGE_SIZE << compound_order(page)); } +EXPORT_SYMBOL_GPL(__sync_icache_dcache); /* * This function is called when a page has been modified by the kernel. Mark