diff options
author | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-03-16 22:01:04 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-03-16 22:01:04 -0700 |
commit | 78947bdfd75211cc9482cad01f95fe103a863110 (patch) | |
tree | 795b8170047bfefaf6f3a242317265b6792753cb /arch/riscv | |
parent | f3773dd031de7b283227f6104049688f77074a2d (diff) | |
download | linux-78947bdfd75211cc9482cad01f95fe103a863110.tar.gz linux-78947bdfd75211cc9482cad01f95fe103a863110.tar.bz2 linux-78947bdfd75211cc9482cad01f95fe103a863110.zip |
RISC-V: kasan: Declare kasan_shallow_populate() static
Without this I get a missing prototype warning.
Reported-by: kernel test robot <lkp@intel.com>
Fixes: e178d670f251 ("riscv/kasan: add KASAN_VMALLOC support")
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/mm/kasan_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |