[PATCH] RISC-V: kasan: Declare kasan_shallow_populate() static

Palmer Dabbelt palmer at dabbelt.com
Wed Mar 17 05:02:48 GMT 2021


From: Palmer Dabbelt <palmerdabbelt at google.com>

Without this I get a missing prototype warning.

Reported-by: kernel test robot <lkp at intel.com>
Fixes: e178d670f251 ("riscv/kasan: add KASAN_VMALLOC support")
Cc: stable at vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmerdabbelt at google.com>
---
 arch/riscv/mm/kasan_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/mm/kasan_init.c b/arch/riscv/mm/kasan_init.c
index 5c35e0f71e88..4f85c6d0ddf8 100644
--- a/arch/riscv/mm/kasan_init.c
+++ b/arch/riscv/mm/kasan_init.c
@@ -155,7 +155,7 @@ static void __init kasan_populate(void *start, void *end)
 	memset(start, KASAN_SHADOW_INIT, end - start);
 }
 
-void __init kasan_shallow_populate(void *start, void *end)
+static void __init kasan_shallow_populate(void *start, void *end)
 {
 	unsigned long vaddr = (unsigned long)start & PAGE_MASK;
 	unsigned long vend = PAGE_ALIGN((unsigned long)end);
-- 
2.31.0.rc2.261.g7f71774620-goog




More information about the linux-riscv mailing list