]> git.hungrycats.org Git - linux/commit
riscv: Mark KASAN tmp* page tables variables as static
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 4 Jul 2023 07:43:56 +0000 (09:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:38 +0000 (09:48 +0200)
commitb69c7129a295bdd4c2d5346587642846f47af10e
tree68ed183722d236593aed6965e9596bf3c2b1f230
parentd1f8b6832c975d7f86c3c10e97a58f73acc509b7
riscv: Mark KASAN tmp* page tables variables as static

commit dd7664d67b478afeb79a89e4586c2cd7707d17d6 upstream.

tmp_pg_dir, tmp_p4d and tmp_pud are only used in kasan_init.c so they
should be declared as static.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202306282202.bODptiGE-lkp@intel.com/
Fixes: 96f9d4daf745 ("riscv: Rework kasan population functions")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20230704074357.233982-1-alexghiti@rivosinc.com
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/riscv/mm/kasan_init.c