Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef75fc2e authored by Olof Johansson's avatar Olof Johansson Committed by Greg Kroah-Hartman
Browse files

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: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarPaul Walmsley <paul.walmsley@sifive.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d32a6cff
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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