]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: mm: init: make pt_ops_set_[early|late|fixmap] static
authorJisheng Zhang <jszhang@kernel.org>
Mon, 16 May 2022 14:32:04 +0000 (22:32 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 2 Jun 2022 21:50:41 +0000 (14:50 -0700)
commit408392b5648e9be6de1baf47e76adb1b150c1af9
tree7277aac154de8eb019da98df1dbe01608f2a31ea
parent753ed6ab0d492222779c68f8903058a54f1cb2ff
riscv: mm: init: make pt_ops_set_[early|late|fixmap] static

These three functions are only used in init.c, so make them static.
Fix W=1 warnings like below:

arch/riscv/mm/init.c:721:13: warning: no previous prototype for function
'pt_ops_set_early' [-Wmissing-prototypes]
   void __init pt_ops_set_early(void)
               ^

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20220516143204.2603-1-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/init.c