]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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)
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

index 8f190068664059d3ed2bfc5e40b27e93c1d7bb88..8930ab7278e6d51a7e14e05a765ca21a6e6e2798 100644 (file)
@@ -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