From: Ben Hutchings Date: Wed, 11 Jul 2018 22:40:55 +0000 (+0100) Subject: ARM: mm: Export __sync_icache_dcache() for xen-privcmd X-Git-Tag: archive/raspbian/6.12.41-1+rpi1^2~31 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2deefa21676ac979d954a818d97fd0d1e59fe604;p=linux.git ARM: mm: Export __sync_icache_dcache() for xen-privcmd Forwarded: https://lore.kernel.org/all/20180711225013.GF14131@decadent.org.uk/ 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(). However, in a non-LPAE configuration there is no "special" bit and the call is really unconditional. Fixes: 3ad0876554ca ("xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE") Signed-off-by: Ben Hutchings Gbp-Pq: Topic bugfix/arm Gbp-Pq: Name arm-mm-export-__sync_icache_dcache-for-xen-privcmd.patch --- diff --git a/arch/arm/mm/flush.c b/arch/arm/mm/flush.c index 0749cf8a663..b699fa76901 100644 --- a/arch/arm/mm/flush.c +++ b/arch/arm/mm/flush.c @@ -310,6 +310,7 @@ void __sync_icache_dcache(pte_t pteval) if (pte_exec(pteval)) __flush_icache_all(); } +EXPORT_SYMBOL_GPL(__sync_icache_dcache); #endif /*