summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2021-05-21 09:35:33 +0300
committerEmil Renner Berthing <kernel@esmil.dk>2021-09-12 15:35:02 +0300
commit80aa89808df39b90ff649ffb78677463281b281e (patch)
tree6089b14541899f79c1213ce12297f225cbcfdb64
parent421543a20431d7856328257f28200b53cce0e765 (diff)
downloadlinux-80aa89808df39b90ff649ffb78677463281b281e.tar.xz
sifive/sifive_l2_cache: Print a backtrace on out-of-range flushes
This makes it easier to find out which driver passes a wrong address range. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
-rw-r--r--drivers/soc/sifive/sifive_l2_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soc/sifive/sifive_l2_cache.c b/drivers/soc/sifive/sifive_l2_cache.c
index be4e141f5a0e..626b664547e5 100644
--- a/drivers/soc/sifive/sifive_l2_cache.c
+++ b/drivers/soc/sifive/sifive_l2_cache.c
@@ -143,8 +143,8 @@ void sifive_l2_flush64_range(unsigned long start, unsigned long len)
if(start < CONFIG_SIFIVE_L2_FLUSH_START ||
(start + len) > (CONFIG_SIFIVE_L2_FLUSH_START +
CONFIG_SIFIVE_L2_FLUSH_SIZE)) {
- pr_warn("L2CACHE: flush64 out of range: %lx(%lx), skip flush\n",
- start, len);
+ WARN(1, "L2CACHE: flush64 out of range: %lx(%lx), skip flush\n",
+ start, len);
return;
}