Commit 1833e327 authored by Olof Johansson's avatar Olof Johansson Committed by Paul Walmsley

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: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarPaul Walmsley <paul.walmsley@sifive.com>
parent 556f47ac
...@@ -22,6 +22,7 @@ void flush_icache_all(void) ...@@ -22,6 +22,7 @@ void flush_icache_all(void)
else else
on_each_cpu(ipi_remote_fence_i, NULL, 1); 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 * Performs an icache flush for the given MM context. RISC-V has no direct
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment