]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commitfb1289d4cd8303551b9ae2120bbe599bb0625ea7
tree8966728dd9467f8904f112074026cccab44c8d35
parent806ea96cb1b720f647f97999c95b62a3b51fa804
riscv: export flush_icache_all to modules

BugLink: https://bugs.launchpad.net/bugs/1862227
[ 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: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/riscv/mm/cacheflush.c