Re: [PATCH] riscv: mm: fix 2 instances of -Wmissing-variable-declarations

From: Nick Desaulniers
Date: Tue Aug 08 2023 - 14:02:19 EST


On Tue, Aug 8, 2023 at 9:24 AM Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
>
> On Tue, Aug 08, 2023 at 09:15:41AM -0700, Nick Desaulniers wrote:
> > diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h
> > index 75970ee2bda2..4c8c0f83a974 100644
> > --- a/arch/riscv/include/asm/pgtable.h
> > +++ b/arch/riscv/include/asm/pgtable.h
> > @@ -188,6 +188,7 @@ extern struct pt_alloc_ops pt_ops __initdata;
> > #define PAGE_KERNEL_IO __pgprot(_PAGE_IOREMAP)
> >
> > extern pgd_t swapper_pg_dir[];
> > +extern pgd_t trampoline_pg_dir[];
>
> Missing early_pg_dir too? It looks like there is already a declaration
> in arch/riscv/mm/kasan_init.c that could be hoisted here?

Yep, will respin. Good catch!

--
Thanks,
~Nick Desaulniers