Skip to content

Commit 78947bd

Browse files
RISC-V: kasan: Declare kasan_shallow_populate() static
Without this I get a missing prototype warning. Reported-by: kernel test robot <[email protected]> Fixes: e178d67 ("riscv/kasan: add KASAN_VMALLOC support") Cc: [email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent f3773dd commit 78947bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/mm/kasan_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static void __init kasan_populate(void *start, void *end)
155155
memset(start, KASAN_SHADOW_INIT, end - start);
156156
}
157157

158-
void __init kasan_shallow_populate(void *start, void *end)
158+
static void __init kasan_shallow_populate(void *start, void *end)
159159
{
160160
unsigned long vaddr = (unsigned long)start & PAGE_MASK;
161161
unsigned long vend = PAGE_ALIGN((unsigned long)end);

0 commit comments

Comments
 (0)