linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] riscv: export flush_icache_all
@ 2019-06-11 10:24 Andreas Schwab
  2019-06-11 13:49 ` Christoph Hellwig
  2019-06-11 13:53 ` Paul Walmsley
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Schwab @ 2019-06-11 10:24 UTC (permalink / raw)
  To: linux-riscv; +Cc: Palmer Dabbelt, Christoph Hellwig, Gary Guo

Before 58de77545e53 ("riscv: move flush_icache_{all,mm} to cacheflush.c"),
flush_icache_all was a macro, but it is used by a module:

  ERROR: "flush_icache_all" [drivers/misc/lkdtm/lkdtm.ko] undefined!

Signed-off-by: Andreas Schwab <schwab@suse.de>
---
 arch/riscv/mm/cacheflush.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/mm/cacheflush.c b/arch/riscv/mm/cacheflush.c
index 9ebcff8ba263..4a2e5bf8b21a 100644
--- a/arch/riscv/mm/cacheflush.c
+++ b/arch/riscv/mm/cacheflush.c
@@ -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
-- 
2.22.0


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-06-11 18:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-11 10:24 [PATCH] riscv: export flush_icache_all Andreas Schwab
2019-06-11 13:49 ` Christoph Hellwig
2019-06-11 18:51   ` Kees Cook
2019-06-11 13:53 ` Paul Walmsley
2019-06-11 14:02   ` Paul Walmsley
2019-06-11 14:12     ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).