]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: export flush_icache_all to modules
authorOlof Johansson <olof@lixom.net>
Tue, 17 Dec 2019 04:07:04 +0000 (20:07 -0800)
committerPaul Walmsley <paul.walmsley@sifive.com>
Sat, 28 Dec 2019 05:51:01 +0000 (21:51 -0800)
commitbaeb6e2ecf565c927408bc4078186f6908c713b6
tree8cc538a2b4f7c6c978c10c47b3a501a368beb855
parent93c0984cefb8709449a8ae11c474af49786738b4
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>
arch/riscv/mm/cacheflush.c