ARM: mm: Export __sync_icache_dcache() for xen-privcmd
authorBen Hutchings <ben@decadent.org.uk>
Wed, 11 Jul 2018 22:40:55 +0000 (23:40 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 26 Sep 2019 12:19:06 +0000 (13:19 +0100)
commit7e1b8deb8d96e891b20b2fa64a09d501c56d9482
tree2568cd345570f6e9082989538d79b8f0bfeadde3
parentce46638a2187b4f6776ec42ad51e81f4d518b6a2
ARM: 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().
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 <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/arm
Gbp-Pq: Name arm-mm-export-__sync_icache_dcache-for-xen-privcmd.patch
arch/arm/mm/flush.c