summaryrefslogtreecommitdiff
path: root/arch/riscv
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2019-12-16 20:07:04 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-17 19:49:04 +0100
commitef75fc2e63136be4c1194b0802025eab6241c508 (patch)
treee04930e2f2fe74be5bff6ef20aec622d72e45ae3 /arch/riscv
parentd32a6cffd2d27b6783a9ed9a7f3e8ce12562dcb8 (diff)
riscv: export flush_icache_all to modules
[ Upstream commit 1833e327a5ea1d1f356fbf6ded0760c9ff4b0594 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/riscv')
-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 3f15938dec89..c54bd3c79955 100644
--- a/arch/riscv/mm/cacheflush.c
+++ b/arch/riscv/mm/cacheflush.c
@@ -14,6 +14,7 @@ void flush_icache_all(void)
{
sbi_remote_fence_i(NULL);
}
+EXPORT_SYMBOL(flush_icache_all);
/*
* Performs an icache flush for the given MM context. RISC-V has no direct