Skip to content

Commit

Permalink
riscv: export flush_icache_all to modules
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Paul Walmsley <[email protected]>
  • Loading branch information
olofj authored and paul-walmsley-sifive committed Dec 28, 2019
1 parent 556f47a commit 1833e32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/riscv/mm/cacheflush.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1833e32

Please sign in to comment.