summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2019-12-17 05:07:04 +0100
committerPaul Walmsley <paul.walmsley@sifive.com>2019-12-28 06:51:01 +0100
commit1833e327a5ea1d1f356fbf6ded0760c9ff4b0594 (patch)
tree8cc538a2b4f7c6c978c10c47b3a501a368beb855 /arch
parentriscv: reject invalid syscalls below -1 (diff)
downloadlinux-1833e327a5ea1d1f356fbf6ded0760c9ff4b0594.tar.xz
linux-1833e327a5ea1d1f356fbf6ded0760c9ff4b0594.zip
riscv: export flush_icache_all to modules
This is needed by LKDTM (crash dump test module), it calls flush_icache_range(), which on RISC-V turns into flush_icache_all(). On other architectures, the actual implementation is exported, so follow that precedence and export it here too. Fixes build of CONFIG_LKDTM that fails with: ERROR: "flush_icache_all" [drivers/misc/lkdtm/lkdtm.ko] undefined! Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/mm/cacheflush.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/mm/cacheflush.c b/arch/riscv/mm/cacheflush.c
index 8f1900686640..8930ab7278e6 100644
--- a/arch/riscv/mm/cacheflush.c
+++ b/arch/riscv/mm/cacheflush.c
@@ -22,6 +22,7 @@ void flush_icache_all(void)
else
on_each_cpu(ipi_remote_fence_i, NULL, 1);
}
+EXPORT_SYMBOL(flush_icache_all);
/*
* Performs an icache flush for the given MM context. RISC-V has no direct