public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] riscv: Mark KASAN tmp* page tables variables as static
@ 2023-07-04  7:43 Alexandre Ghiti
  2023-07-04  7:43 ` [PATCH 2/2] riscv: Move create_tmp_mapping() to init sections Alexandre Ghiti
  2023-08-30 13:20 ` [PATCH 1/2] riscv: Mark KASAN tmp* page tables variables as static patchwork-bot+linux-riscv
  0 siblings, 2 replies; 3+ messages in thread
From: Alexandre Ghiti @ 2023-07-04  7:43 UTC (permalink / raw)
  To: Andrey Ryabinin, Alexander Potapenko, Andrey Konovalov,
	Dmitry Vyukov, Vincenzo Frascino, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Alexandre Ghiti, Björn Töpel, kasan-dev,
	linux-riscv, linux-kernel
  Cc: kernel test robot

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>
---
 arch/riscv/mm/kasan_init.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/riscv/mm/kasan_init.c b/arch/riscv/mm/kasan_init.c
index 8fc0efcf905c..b88914741f3d 100644
--- a/arch/riscv/mm/kasan_init.c
+++ b/arch/riscv/mm/kasan_init.c
@@ -23,9 +23,9 @@
  */
 
 extern pgd_t early_pg_dir[PTRS_PER_PGD];
-pgd_t tmp_pg_dir[PTRS_PER_PGD] __page_aligned_bss;
-p4d_t tmp_p4d[PTRS_PER_P4D] __page_aligned_bss;
-pud_t tmp_pud[PTRS_PER_PUD] __page_aligned_bss;
+static pgd_t tmp_pg_dir[PTRS_PER_PGD] __page_aligned_bss;
+static p4d_t tmp_p4d[PTRS_PER_P4D] __page_aligned_bss;
+static pud_t tmp_pud[PTRS_PER_PUD] __page_aligned_bss;
 
 static void __init kasan_populate_pte(pmd_t *pmd, unsigned long vaddr, unsigned long end)
 {
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] riscv: Move create_tmp_mapping() to init sections
  2023-07-04  7:43 [PATCH 1/2] riscv: Mark KASAN tmp* page tables variables as static Alexandre Ghiti
@ 2023-07-04  7:43 ` Alexandre Ghiti
  2023-08-30 13:20 ` [PATCH 1/2] riscv: Mark KASAN tmp* page tables variables as static patchwork-bot+linux-riscv
  1 sibling, 0 replies; 3+ messages in thread
From: Alexandre Ghiti @ 2023-07-04  7:43 UTC (permalink / raw)
  To: Andrey Ryabinin, Alexander Potapenko, Andrey Konovalov,
	Dmitry Vyukov, Vincenzo Frascino, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Alexandre Ghiti, Björn Töpel, kasan-dev,
	linux-riscv, linux-kernel

This function is only used at boot time so mark it as __init.

Fixes: 96f9d4daf745 ("riscv: Rework kasan population functions")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.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 b88914741f3d..435e94a5b1bb 100644
--- a/arch/riscv/mm/kasan_init.c
+++ b/arch/riscv/mm/kasan_init.c
@@ -439,7 +439,7 @@ static void __init kasan_shallow_populate(void *start, void *end)
 	kasan_shallow_populate_pgd(vaddr, vend);
 }
 
-static void create_tmp_mapping(void)
+static void __init create_tmp_mapping(void)
 {
 	void *ptr;
 	p4d_t *base_p4d;
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] riscv: Mark KASAN tmp* page tables variables as static
  2023-07-04  7:43 [PATCH 1/2] riscv: Mark KASAN tmp* page tables variables as static Alexandre Ghiti
  2023-07-04  7:43 ` [PATCH 2/2] riscv: Move create_tmp_mapping() to init sections Alexandre Ghiti
@ 2023-08-30 13:20 ` patchwork-bot+linux-riscv
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+linux-riscv @ 2023-08-30 13:20 UTC (permalink / raw)
  To: Alexandre Ghiti
  Cc: linux-riscv, ryabinin.a.a, glider, andreyknvl, dvyukov,
	vincenzo.frascino, paul.walmsley, palmer, aou, bjorn, kasan-dev,
	linux-kernel, lkp

Hello:

This series was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer@rivosinc.com>:

On Tue,  4 Jul 2023 09:43:56 +0200 you wrote:
> 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>
> 
> [...]

Here is the summary with links:
  - [1/2] riscv: Mark KASAN tmp* page tables variables as static
    https://git.kernel.org/riscv/c/56e1803d9de0
  - [2/2] riscv: Move create_tmp_mapping() to init sections
    https://git.kernel.org/riscv/c/d616fce3f100

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-30 19:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-04  7:43 [PATCH 1/2] riscv: Mark KASAN tmp* page tables variables as static Alexandre Ghiti
2023-07-04  7:43 ` [PATCH 2/2] riscv: Move create_tmp_mapping() to init sections Alexandre Ghiti
2023-08-30 13:20 ` [PATCH 1/2] riscv: Mark KASAN tmp* page tables variables as static patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox